/** * Scanner constructor. * * @param Container|null $container * @param Dispatcher|null $events */ public function __construct(Container $container = null, Dispatcher $events = null) { $container = $container ?: new Container(); $this->bindings($container, [EventServiceProvider::class, FilesystemServiceProvider::class, PipelineServiceProvider::class, AliasesServiceProvider::class, ConfigServiceProvider::class, VulnDBServiceProvider::class]); $events = $events ?: $container->make('events'); parent::__construct($container, $events, static::VERSION); $this->setName('Wordpress Vulnerabilities Scanner'); }
public function __construct($container) { parent::__construct('forge-cli', 0.1); $this->setLaravel($container); // Register the deploy command $this->add(new DeployCommand()); $this->add(new AddSiteCommand()); }
/** * Setup the application */ public function __construct() { parent::__construct('Satellite', '0.1.0'); // Setup application's dependencies $app = new Container(); $provider = new SatelliteServiceProvider($app); $provider->register(); // Register services $this->laravel = $app; // Add commands $this->resolveCommands(array('Rocketeer\\Satellite\\Console\\Commands\\Setup', 'Rocketeer\\Satellite\\Console\\Commands\\ListApplications', 'Rocketeer\\Satellite\\Console\\Commands\\Deploy', 'Rocketeer\\Satellite\\Console\\Commands\\Update')); }
public function __construct(Container $container) { parent::__construct('XenForo Developer Toolkit', '1.0-dev'); $this->setContainer($container); $container['app'] = $this; $container->alias('app', 'Robbo\\XfToolkit\\Application'); $container->bindShared('xenforo', function ($container) { return new XenForo($this, new Filesystem()); }); $container->alias('xenforo', 'Robbo\\XfToolkit\\XenForo'); $this->registerBundledCommands(); }
public function __construct() { $container = $this->initialize(); if ($this->laravelVersion === 5) { parent::__construct($container, $container['events'], self::VERSION); $this->setCatchExceptions(true); $this->setName(self::NAME); } else { parent::__construct(self::NAME, self::VERSION); $this->setLaravel($container); $this->boot(); } $this->loadMigrations($container); }
/** * Console constructor. * * @param ConfigInterface $config * @param Paths $paths * @param string $version */ public function __construct(ConfigInterface $config, Paths $paths, $version = \F9\Application\Application::VERSION) { $this->config = $config; $this->paths = $paths; /** @var Container $app */ $app = Forge::find('app'); // the parent is a hijacked copy of the illuminate console application. // we hijacked it mainly to override a few properties - such as the title. parent::__construct(forge('illuminate.container'), forge('illuminate.events'), $version); //$this->bootSettings(); $this->configureEnvironment(); // in all cases, register the framework commands $this->registerFrameworkCommands(); // register the cloned artisan commands $this->registerArtisanCommands(); }
/** * Application constructor. * * @param \Illuminate\Container\Container $container * @param \Illuminate\Contracts\Events\Dispatcher $events * @param $version */ public function __construct(Container $container, Dispatcher $events, $version) { parent::__construct($container, $events, $version); $this->container = $container; }
public function __construct(Container $laravel, Dispatcher $events, $version) { parent::__construct($laravel, $events, $version); $this->setName(app()->getName()); }
/** * Set application name * * @param Container $container * @param Dispatcher $events * @param string $version */ public function __construct(Container $container, Dispatcher $events, $version) { parent::__construct($container, $events, $version); $this->setName('GitHook'); }
public function __construct(Container $laravel, Dispatcher $events, $version, SymfonyApplication $application) { $this->application = $application; parent::__construct($laravel, $events, $version); }
public function __construct(Container $laravel, Dispatcher $events, $version) { parent::__construct($laravel, $events, $version); #parent::__construct($laravel, new \Illuminate\Events\Dispatcher($laravel), $version); }