Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php namespace Modules\Recipe\Providers; use Illuminate\Support\ServiceProvider; class..
Decoded Output download
<?php
namespace Modules\Recipe\Providers;
use Illuminate\Support\ServiceProvider;
class RecipeServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->registerBindings();
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [];
}
private function registerBindings()
{
$this->app->bind(
'Modules\Recipe\Repositories\RecipeRepository',
function () {
$repository = new \Modules\Recipe\Repositories\Eloquent\EloquentRecipeRepository(new \Modules\Recipe\Entities\Recipe());
if (! config('app.cache')) {
return $repository;
}
return new \Modules\Recipe\Repositories\Cache\CacheRecipeDecorator($repository);
}
);
// add bindings
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace Modules\Recipe\Providers;
use Illuminate\Support\ServiceProvider;
class RecipeServiceProvider extends ServiceProvider
{
/**
* Indicates if loading of the provider is deferred.
*
* @var bool
*/
protected $defer = false;
/**
* Register the service provider.
*
* @return void
*/
public function register()
{
$this->registerBindings();
}
/**
* Get the services provided by the provider.
*
* @return array
*/
public function provides()
{
return [];
}
private function registerBindings()
{
$this->app->bind(
'Modules\Recipe\Repositories\RecipeRepository',
function () {
$repository = new \Modules\Recipe\Repositories\Eloquent\EloquentRecipeRepository(new \Modules\Recipe\Entities\Recipe());
if (! config('app.cache')) {
return $repository;
}
return new \Modules\Recipe\Repositories\Cache\CacheRecipeDecorator($repository);
}
);
// add bindings
}
}
Function Calls
None |
Stats
MD5 | 62aba2fd4253d2a27899b6b59f94988a |
Eval Count | 0 |
Decode Time | 121 ms |