本文整理汇总了PHP中Illuminate\Foundation\Composer::dumpAutoloads方法的典型用法代码示例。如果您正苦于以下问题:PHP Composer::dumpAutoloads方法的具体用法?PHP Composer::dumpAutoloads怎么用?PHP Composer::dumpAutoloads使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Illuminate\Foundation\Composer
的用法示例。
在下文中一共展示了Composer::dumpAutoloads方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$fullPath = $this->createBaseMigration();
$this->files->put($fullPath, $this->files->get(__DIR__ . '/stubs/counter.stub'));
$this->info('Migration created successfully!');
$this->composer->dumpAutoloads();
}
示例2: fire
/**
* Execute the console command.
*/
public function fire()
{
$fullPath = $this->createBaseMigration();
$this->files->put($fullPath, $this->files->get(__DIR__ . '/stubs/database.stub'));
$this->info('Migration created successfully! Don\'t forget to run "artisan migrate".');
$this->composer->dumpAutoloads();
}
示例3: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->setAppDirectoryNamespace();
$this->setConfigNamespaces();
$this->setComposerNamespace();
$this->info('Application namespace set!');
$this->composer->dumpAutoloads();
}
示例4: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$table = $this->laravel['config']['queue.connections.database.table'];
$fullPath = $this->createBaseMigration($table);
$stub = str_replace('{{table}}', $table, $this->files->get(__DIR__ . '/stubs/jobs.stub'));
$this->files->put($fullPath, $stub);
$this->info('Migration created successfully!');
$this->composer->dumpAutoloads();
}
示例5: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$table = $this->laravel['config']['queue.failed.table'];
$tableClassName = Str::studly($table);
$fullPath = $this->createBaseMigration($table);
$stub = str_replace(['{{table}}', '{{tableClassName}}'], [$table, $tableClassName], $this->files->get(__DIR__ . '/stubs/failed_jobs.stub'));
$this->files->put($fullPath, $stub);
$this->info('Migration created successfully!');
$this->composer->dumpAutoloads();
}
示例6: fire
/**
* Execute the console command.
*
* @return mixed
*/
public function fire()
{
$this->meta = (new NameParser())->parse($this->argument('name'));
$this->buildMigration();
$this->buildController();
$this->buildModel();
$this->buildViews();
$this->buildRoutes();
$this->composer->dumpAutoloads();
}
示例7: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->currentRoot = trim($this->getAppNamespace(), '\\');
$this->setBootstrapNamespaces();
$this->setAppDirectoryNamespace();
$this->setConfigNamespaces();
$this->setComposerNamespace();
$this->info('Application namespace set!');
$this->composer->dumpAutoloads();
}
示例8: makeMigration
/**
* Generate the desired migration.
*/
protected function makeMigration()
{
$name = $this->argument('name');
if ($this->files->exists($path = $this->getPath($name))) {
return $this->error($this->type . ' already exists!');
}
$this->makeDirectory($path);
$this->files->put($path, $this->compileMigrationStub());
$this->info('Migration created successfully.');
$this->composer->dumpAutoloads();
}
示例9: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$table = $this->input->getArgument('table');
$column = $this->input->getArgument('column');
$name = 'add_' . $column . '_to_' . $table . '_table';
// Now we are ready to write the migration out to disk. Once we've written
// the migration out, we will dump-autoload for the entire framework to
// make sure that the migrations are registered by the class loaders.
$this->writeMigration($name, $table, $column);
$this->composer->dumpAutoloads();
}
示例10: makeModel
/**
* Generate the desired Model.
*/
protected function makeModel()
{
$name = $this->argument('name');
if ($this->files->exists($path = $this->getPath($name))) {
return $this->error($name . ' Model already exists!');
}
$this->makeDirectory($path);
$this->files->put($path, $this->compileAspNetModel());
$this->info('AspNet Model created successfully.');
$this->composer->dumpAutoloads();
}
示例11: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->currentRoot = trim($this->laravel->getNamespace(), '\\');
$this->setBootstrapNamespaces();
$this->setAppDirectoryNamespace();
$this->setConfigNamespaces();
$this->setComposerNamespace();
$this->setDatabaseFactoryNamespaces();
$this->info('Application namespace set!');
$this->composer->dumpAutoloads();
$this->call('clear-compiled');
}
示例12: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
$this->info('Generating optimized class loader');
if ($this->option('psr')) {
$this->composer->dumpAutoloads();
} else {
$this->composer->dumpOptimized();
}
if ($this->option('force') || !$this->laravel['config']['app.debug']) {
$this->info('Compiling common classes');
$this->compileClasses();
} else {
$this->call('clear-compiled');
}
}
示例13: fire
/**
* Execute the command.
*/
public function fire(Composer $composer)
{
$generator = new MigrationGenerator(['name' => $this->argument('name'), 'fields' => $this->option('fields'), 'force' => $this->option('force')]);
$generator->run();
$this->info('Migration created successfully.');
$composer->dumpAutoloads();
}
示例14: fire
/**
* Execute the command.
*/
public function fire(Composer $composer)
{
$generator = new SeedGenerator(['name' => $this->argument('name'), 'master' => $this->option('master'), 'force' => $this->option('force')]);
$generator->run();
$this->info('Seed created successfully.');
$composer->dumpAutoloads();
}
示例15: fire
/**
* Execute the console command.
*
* @return void
*/
public function fire()
{
// It's possible for the developer to specify the tables to modify in this
// schema operation. The developer may also specify if this table needs
// to be freshly created so we can create the appropriate migrations.
$name = $this->input->getArgument('name');
$table = $this->input->getOption('table');
$create = $this->input->getOption('create');
if (!$table && is_string($create)) {
$table = $create;
}
// Now we are ready to write the migration out to disk. Once we've written
// the migration out, we will dump-autoload for the entire framework to
// make sure that the migrations are registered by the class loaders.
$this->writeMigration($name, $table, $create);
$this->composer->dumpAutoloads();
}