Giter Club home page Giter Club logo

Comments (2)

137-rick avatar 137-rick commented on August 17, 2024

这个组件是可选组件,可以通过composer require symfony/console:^5.1 安装
swoole启动有两个方式,你用的正好是用这个组件的方式,可以选用bin/start.php启动,这个无需此组件
这么设计的原因是symfony console即使不使用也会有大量文件加载,小伙伴比较排斥这个所以默认没有集成

from fend.

yozman avatar yozman commented on August 17, 2024

@archdesigner

关于框架的使用模式透出,感觉应该有两个对应的 preset(skeleton),分别为 preset-swoole 和 preset-fpm

大量不必要的文件加载,感觉可以借鉴一下 js 社区 webpack 的 treeshaking 方案,通过编译的方式保证线上 release 的代码没有多余没用到的文件加载


还有 bin/start.php 这种感觉也应该维护成一个 composer package 然后在 preset 的 composer.json 里通过

...
"require": {
  ...
  "fend/cli": "1.0.0"
  ...
},
"scripts": {
  "app": "fend-cli"
},
...

的形式定义,并通过 composer app -- xxx 来使用

from fend.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.