• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Foundation\Composer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Illuminate\Foundation\Composer的典型用法代码示例。如果您正苦于以下问题:PHP Composer类的具体用法?PHP Composer怎么用?PHP Composer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Composer类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: handle

 /**
  * Execute the command.
  *
  * @param  Composer $composer
  *
  * @throws FileAlreadyExistsException
  */
 public function handle(Composer $composer)
 {
     $this->generator->setConsole($this)->setOptions(['name' => $this->argument('name'), 'master' => $this->option('master'), 'force' => $this->option('force')])->run();
     $this->info('Seed created successfully.');
     $composer->dumpAutoloads();
 }
开发者ID:arcanedev,项目名称:generators,代码行数:13,代码来源:GenerateSeedCommand.php


示例8: __construct

 /**
  * Create a new command instance.
  *
  * @return void
  */
 public function __construct(Composer $composer)
 {
     parent::__construct();
     $this->composer = $composer;
     $this->composer->dumpAutoloads();
 }
开发者ID:RHT-Memphis,项目名称:aeroeco,代码行数:11,代码来源:Model.php


示例9: dumpAutoload

 /**
  * Dump autoload classes
  *
  * @return void
  */
 public function dumpAutoload()
 {
     // Also run composer dump-autoload
     $composer = new Composer($this->app['files']);
     $this->info('Generating optimized class loader');
     $composer->dumpOptimized();
     $this->line('');
 }
开发者ID:evertonteotonio,项目名称:laravel-modules,代码行数:13,代码来源:AbstractCommand.php


示例10: 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


示例11: 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


示例12: 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


示例13: 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


示例14: 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


示例15: 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


示例16: 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


示例17: 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


示例18: 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


示例19: 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();
 }
开发者ID:elitexp,项目名称:aspnet,代码行数:14,代码来源:MakeAspNetModelCommand.php


示例20: 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();
 }
开发者ID:ferch01991,项目名称:BlogLaravel,代码行数:16,代码来源:SluggableTableCommand.php



注:本文中的Illuminate\Foundation\Composer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Foundation\Inspiring类代码示例发布时间:2022-05-23
下一篇:
PHP Foundation\Application类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap