當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Foundation\Composer類代碼示例

本文整理匯總了PHP中Illuminate\Foundation\Composer的典型用法代碼示例。如果您正苦於以下問題:PHP Composer類的具體用法?PHP Composer怎麽用?PHP Composer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Composer類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: 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();
 }
開發者ID:aguaragazu,項目名稱:LaravelStart,代碼行數:10,代碼來源:MigrationCommand.php

示例2: 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();
 }
開發者ID:Avantinternet,項目名稱:generators,代碼行數:10,代碼來源:SeedCommand.php

示例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();
 }
開發者ID:AlexCutts,項目名稱:framework,代碼行數:13,代碼來源:AppNameCommand.php

示例4: fire

 /**
  * Execute the command.
  */
 public function fire(Composer $composer)
 {
     if ($this->argument('name') != null) {
         $this->generateFromCommand();
     } else {
         $this->generateFromDatabase();
     }
     $composer->dumpAutoloads();
 }
開發者ID:mayconbordin,項目名稱:laragen,代碼行數:12,代碼來源:MigrationCommand.php

示例5: 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();
 }
開發者ID:devonzara,項目名稱:framework,代碼行數:15,代碼來源:AppNameCommand.php

示例6: 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');
 }
開發者ID:gabrielbit,項目名稱:laravel,代碼行數:17,代碼來源:AppNameCommand.php

示例7: fire

 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->info('Generating optimized class loader...');
     $this->composer->dumpOptimized();
     $this->info('Compiling common classes...');
     $this->compileClasses();
 }
開發者ID:brucewu16899,項目名稱:laravel-admin-panel,代碼行數:12,代碼來源:OptimizeCommand.php

示例8: 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();
 }
開發者ID:edvinaskrucas,項目名稱:counter-laravel,代碼行數:12,代碼來源:TableCommand.php

示例9: 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();
 }
開發者ID:kevin416,項目名稱:admin,代碼行數:10,代碼來源:TaggableTableCommand.php

示例10: fire

 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->call('optimize');
     foreach ($this->findWorkbenches() as $workbench) {
         $this->comment("Running for workbench [{$workbench['name']}]...");
         $this->composer->setWorkingPath($workbench['path'])->dumpOptimized();
     }
 }
開發者ID:GeorgeBroadley,項目名稱:caffeine-vendor,代碼行數:13,代碼來源:AutoloadCommand.php

示例11: 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();
 }
開發者ID:ssomenzi,項目名稱:silence,代碼行數:14,代碼來源:TableCommand.php

示例12: 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();
 }
開發者ID:ngitimfoyo,項目名稱:Nyari-AppPHP,代碼行數:15,代碼來源:FailedTableCommand.php

示例13: 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();
 }
開發者ID:ericcallan,項目名稱:Laravel-5-Generators-Extended,代碼行數:15,代碼來源:MigrationMakeCommand.php

示例14: 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();
 }
開發者ID:jeryckho,項目名稱:sbadmin,代碼行數:14,代碼來源:MigrationMakeCommand.php

示例15: fire

 /**
  * Execute the console command.
  *
  * @return void
  */
 public function fire()
 {
     $this->info('Generating optimized class loader');
     $this->composer->dumpOptimized();
     if ($this->option('force') or !$this->laravel['config']['app.debug']) {
         $this->info('Compiling common classes');
         $this->compileClasses();
     } else {
         $this->call('clear-compiled');
     }
 }
開發者ID:Yatko,項目名稱:Gifteng,代碼行數:16,代碼來源:OptimizeCommand.php


注:本文中的Illuminate\Foundation\Composer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。