Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/inventory.corals.io/vendor/bkwld/cloner/src/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/inventory.corals.io/vendor/bkwld/cloner/src/ServiceProvider.php
<?php namespace Bkwld\Cloner;

// Deps
use Bkwld\Cloner\Adapters\Upchuck as UpchuckAdapter;
use Illuminate\Support\ServiceProvider as LaravelServiceProvider;

/**
 * Bootstrap the package for Laravel
 */
class ServiceProvider extends LaravelServiceProvider {

	/**
	 * Register the service provider.
	 *
	 * @return void
	 */
	public function register() {

		// Instantiate main Cloner instance
		$this->app->singleton('cloner', function($app) {
			return new Cloner(
				$app['cloner.attachment-adapter'],
				$app['events']
			);
		});

		// Instantiate default Upchuck attachment adapter if the app is using Upchuck.
		$this->app->singleton('cloner.attachment-adapter', function($app) {
			if (empty($app['upchuck'])) return;
			return new UpchuckAdapter(
				$app['upchuck'],
				$app['upchuck.storage'],
				$app['upchuck.disk']
			);
		});

	}

	/**
	 * Get the services provided by the provider.
	 *
	 * @return array
	 */
	public function provides() {
		return [
			'cloner',
			'cloner.attachment-adapter',
		];
	}

}

Spamworldpro Mini