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 Illuminate\Database; use Illuminate\Contracts\Events\Dispatcher; use Illu..
Decoded Output download
<?php
namespace Illuminate\Database; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Database\Console\Migrations\FreshCommand; use Illuminate\Database\Console\Migrations\InstallCommand; use Illuminate\Database\Console\Migrations\MigrateCommand; use Illuminate\Database\Console\Migrations\MigrateMakeCommand; use Illuminate\Database\Console\Migrations\RefreshCommand; use Illuminate\Database\Console\Migrations\ResetCommand; use Illuminate\Database\Console\Migrations\RollbackCommand; use Illuminate\Database\Console\Migrations\StatusCommand; use Illuminate\Database\Migrations\DatabaseMigrationRepository; use Illuminate\Database\Migrations\MigrationCreator; use Illuminate\Database\Migrations\Migrator; use Illuminate\Support\ServiceProvider; class MigrationServiceProvider extends ServiceProvider implements DeferrableProvider { protected $commands = array("Migrate" => MigrateCommand::class, "MigrateFresh" => FreshCommand::class, "MigrateInstall" => InstallCommand::class, "MigrateRefresh" => RefreshCommand::class, "MigrateReset" => ResetCommand::class, "MigrateRollback" => RollbackCommand::class, "MigrateStatus" => StatusCommand::class, "MigrateMake" => MigrateMakeCommand::class); public function register() { $this->registerRepository(); $this->registerMigrator(); $this->registerCreator(); $this->registerCommands($this->commands); } protected function registerRepository() { $this->app->singleton("migration.repository", function ($app) { $migrations = $app["config"]["database.migrations"]; $table = is_array($migrations) ? $migrations["table"] ?? null : $migrations; return new DatabaseMigrationRepository($app["db"], $table); }); } protected function registerMigrator() { $this->app->singleton("migrator", function ($app) { $repository = $app["migration.repository"]; return new Migrator($repository, $app["db"], $app["files"], $app["events"]); }); } protected function registerCreator() { $this->app->singleton("migration.creator", function ($app) { return new MigrationCreator($app["files"], $app->basePath("stubs")); }); } protected function registerCommands(array $commands) { foreach (array_keys($commands) as $command) { $this->{"register{$command}Command"}(); } $this->commands(array_values($commands)); } protected function registerMigrateCommand() { $this->app->singleton(MigrateCommand::class, function ($app) { return new MigrateCommand($app["migrator"], $app[Dispatcher::class]); }); } protected function registerMigrateFreshCommand() { $this->app->singleton(FreshCommand::class, function ($app) { return new FreshCommand($app["migrator"]); }); } protected function registerMigrateInstallCommand() { $this->app->singleton(InstallCommand::class, function ($app) { return new InstallCommand($app["migration.repository"]); }); } protected function registerMigrateMakeCommand() { $this->app->singleton(MigrateMakeCommand::class, function ($app) { $creator = $app["migration.creator"]; $composer = $app["composer"]; return new MigrateMakeCommand($creator, $composer); }); } protected function registerMigrateRefreshCommand() { $this->app->singleton(RefreshCommand::class); } protected function registerMigrateResetCommand() { $this->app->singleton(ResetCommand::class, function ($app) { return new ResetCommand($app["migrator"]); }); } protected function registerMigrateRollbackCommand() { $this->app->singleton(RollbackCommand::class, function ($app) { return new RollbackCommand($app["migrator"]); }); } protected function registerMigrateStatusCommand() { $this->app->singleton(StatusCommand::class, function ($app) { return new StatusCommand($app["migrator"]); }); } public function provides() { return array_merge(array("migrator", "migration.repository", "migration.creator"), array_values($this->commands)); } } ?>
Did this file decode correctly?
Original Code
<?php
namespace Illuminate\Database; use Illuminate\Contracts\Events\Dispatcher; use Illuminate\Contracts\Support\DeferrableProvider; use Illuminate\Database\Console\Migrations\FreshCommand; use Illuminate\Database\Console\Migrations\InstallCommand; use Illuminate\Database\Console\Migrations\MigrateCommand; use Illuminate\Database\Console\Migrations\MigrateMakeCommand; use Illuminate\Database\Console\Migrations\RefreshCommand; use Illuminate\Database\Console\Migrations\ResetCommand; use Illuminate\Database\Console\Migrations\RollbackCommand; use Illuminate\Database\Console\Migrations\StatusCommand; use Illuminate\Database\Migrations\DatabaseMigrationRepository; use Illuminate\Database\Migrations\MigrationCreator; use Illuminate\Database\Migrations\Migrator; use Illuminate\Support\ServiceProvider; class MigrationServiceProvider extends ServiceProvider implements DeferrableProvider { protected $commands = array("\115\x69\147\162\x61\164\x65" => MigrateCommand::class, "\x4d\x69\147\x72\x61\164\x65\106\162\x65\163\150" => FreshCommand::class, "\x4d\x69\x67\162\141\x74\x65\111\156\x73\164\x61\154\x6c" => InstallCommand::class, "\115\151\x67\162\141\164\x65\x52\145\x66\162\x65\163\150" => RefreshCommand::class, "\x4d\151\147\x72\141\164\x65\x52\x65\x73\x65\x74" => ResetCommand::class, "\115\151\147\x72\x61\x74\x65\122\157\x6c\x6c\x62\x61\143\153" => RollbackCommand::class, "\115\151\147\162\141\164\x65\123\164\x61\164\165\x73" => StatusCommand::class, "\115\x69\x67\x72\x61\x74\145\115\141\x6b\x65" => MigrateMakeCommand::class); public function register() { $this->registerRepository(); $this->registerMigrator(); $this->registerCreator(); $this->registerCommands($this->commands); } protected function registerRepository() { $this->app->singleton("\x6d\151\x67\x72\x61\x74\151\157\x6e\x2e\x72\x65\x70\157\x73\151\164\157\x72\x79", function ($app) { $migrations = $app["\143\157\x6e\146\151\x67"]["\x64\141\164\x61\x62\141\x73\x65\56\x6d\x69\x67\162\x61\164\x69\157\x6e\x73"]; $table = is_array($migrations) ? $migrations["\x74\141\x62\x6c\x65"] ?? null : $migrations; return new DatabaseMigrationRepository($app["\144\142"], $table); }); } protected function registerMigrator() { $this->app->singleton("\x6d\151\147\162\141\164\157\162", function ($app) { $repository = $app["\155\x69\x67\162\x61\164\x69\157\156\x2e\162\x65\160\x6f\163\x69\x74\157\x72\x79"]; return new Migrator($repository, $app["\x64\x62"], $app["\146\x69\154\x65\163"], $app["\x65\x76\x65\x6e\x74\163"]); }); } protected function registerCreator() { $this->app->singleton("\x6d\151\x67\162\141\x74\x69\157\x6e\x2e\x63\x72\145\141\164\x6f\x72", function ($app) { return new MigrationCreator($app["\x66\151\154\145\x73"], $app->basePath("\163\x74\x75\142\x73")); }); } protected function registerCommands(array $commands) { foreach (array_keys($commands) as $command) { $this->{"\x72\145\x67\151\x73\164\x65\x72{$command}\103\x6f\x6d\x6d\x61\156\144"}(); } $this->commands(array_values($commands)); } protected function registerMigrateCommand() { $this->app->singleton(MigrateCommand::class, function ($app) { return new MigrateCommand($app["\x6d\151\x67\x72\141\164\x6f\162"], $app[Dispatcher::class]); }); } protected function registerMigrateFreshCommand() { $this->app->singleton(FreshCommand::class, function ($app) { return new FreshCommand($app["\x6d\x69\147\x72\141\x74\157\162"]); }); } protected function registerMigrateInstallCommand() { $this->app->singleton(InstallCommand::class, function ($app) { return new InstallCommand($app["\x6d\151\147\162\x61\x74\151\157\x6e\x2e\162\x65\x70\157\163\x69\164\157\162\x79"]); }); } protected function registerMigrateMakeCommand() { $this->app->singleton(MigrateMakeCommand::class, function ($app) { $creator = $app["\155\151\147\x72\x61\164\x69\157\156\x2e\143\x72\145\141\164\157\x72"]; $composer = $app["\143\157\x6d\160\157\x73\x65\x72"]; return new MigrateMakeCommand($creator, $composer); }); } protected function registerMigrateRefreshCommand() { $this->app->singleton(RefreshCommand::class); } protected function registerMigrateResetCommand() { $this->app->singleton(ResetCommand::class, function ($app) { return new ResetCommand($app["\155\x69\x67\x72\x61\x74\x6f\x72"]); }); } protected function registerMigrateRollbackCommand() { $this->app->singleton(RollbackCommand::class, function ($app) { return new RollbackCommand($app["\155\x69\x67\162\x61\164\x6f\x72"]); }); } protected function registerMigrateStatusCommand() { $this->app->singleton(StatusCommand::class, function ($app) { return new StatusCommand($app["\x6d\x69\x67\x72\x61\x74\x6f\162"]); }); } public function provides() { return array_merge(array("\155\151\147\x72\141\164\x6f\162", "\155\151\x67\x72\x61\x74\x69\x6f\156\56\x72\145\160\157\x73\x69\x74\x6f\x72\x79", "\155\x69\x67\162\x61\164\x69\157\156\x2e\143\x72\145\141\164\157\x72"), array_values($this->commands)); } }
Function Calls
None |
Stats
MD5 | 6d580894cd87c32dc7c12a4c788bcc21 |
Eval Count | 0 |
Decode Time | 101 ms |