php_Symfony_項目實戰全過程記錄

來源:互聯網
上載者:User

標籤:win32   directory   win   files   word   3.1   安裝   upd   deb   

 

今天是2017年1月8號,正式接收到一個Symfony 的項目,準備全程記錄遇到的問題及解決方案,之前被通知學習該架構,只是一直沒有機會做項目,今天終於可以做了,希望2017把Symfony學的能會使用,能夠解決基本問題,能夠獨立建立項目。。。。。2017開始了。。。。。。。。

 

-------------------------------------------------------------------------------------------------

1月8號,更新代碼,由於有兩三個月沒有看symfony了,上來就遇到了之前的問題,幸好遇到過(以下XXX代表項目名稱)哈哈

1:更新代碼。。。。。

2:跑項目

問題如下:

$ php bin/console server:runPHP Warning:  require(D:\home\workspace\XXX\app/../vendor/autoload.php): failed to open stream: No such file or directory in D:\home\workspace\XXX\app\autoload.php on line 7PHP Fatal error:  require(): Failed opening required ‘D:\home\workspace\XXX\app/../vendor/autoload.php‘ (include_path=‘.;D:\php-5.5.30-nts-Win32-VC11-x64pear‘) in D:\home\workspace\XXX\app\autoload.php on line 7

解釋:沒有安裝依賴包

 

問題解決:執行$ php cocomposer.json  composer.lock  composer.phar

 

運行後如下:

 

Loading composer repositories with package informationInstalling dependencies (including require-dev) from lock filePackage operations: 33 installs, 0 updates, 0 removals  - Installing doctrine/lexer (v1.0.1) Loading from cache  - Installing doctrine/annotations (v1.2.7) Loading from cache  - Installing twig/twig (v1.28.2) Downloading: 100%  - Installing symfony/polyfill-util (v1.3.0) Downloading: 100%  - Installing paragonie/random_compat (v2.0.4) Downloading: 100%  - Installing symfony/polyfill-php70 (v1.3.0) Downloading: 100%  - Installing symfony/polyfill-php56 (v1.3.0) Downloading: 100%  - Installing symfony/polyfill-mbstring (v1.3.0) Downloading: 100%  - Installing symfony/symfony (v3.2.1) Downloading: 100%  - Installing symfony/polyfill-intl-icu (v1.3.0) Downloading: 100%  - Installing psr/log (1.0.2) Loading from cache  - Installing psr/cache (1.0.1) Loading from cache  - Installing doctrine/inflector (v1.1.0) Loading from cache  - Installing doctrine/collections (v1.3.0) Loading from cache  - Installing doctrine/cache (v1.6.1) Loading from cache  - Installing doctrine/common (v2.6.2) Downloading: 100%  - Installing jdorn/sql-formatter (v1.2.17) Loading from cache  - Installing doctrine/doctrine-cache-bundle (1.3.0) Loading from cache  - Installing doctrine/dbal (v2.5.5) Loading from cache  - Installing doctrine/doctrine-bundle (1.6.4) Loading from cache  - Installing doctrine/instantiator (1.0.5) Loading from cache  - Installing doctrine/orm (v2.5.5) Loading from cache  - Installing incenteev/composer-parameter-handler (v2.1.2) Loading from cache  - Installing sensiolabs/security-checker (v4.0.0) Loading from cache  - Installing sensio/distribution-bundle (v5.0.15) Downloading: 100%  - Installing sensio/framework-extra-bundle (v3.0.16) Loading from cache  - Installing monolog/monolog (1.22.0) Downloading: 100%  - Installing symfony/monolog-bundle (3.0.1) Downloading: 100%  - Installing symfony/polyfill-apcu (v1.3.0) Downloading: 100%  - Installing swiftmailer/swiftmailer (v5.4.4) Downloading: 100%  - Installing symfony/swiftmailer-bundle (v2.4.0) Downloading: 100%  - Installing sensio/generator-bundle (v3.1.2) Downloading: 100%  - Installing symfony/phpunit-bridge (v3.2.1) Downloading: 100%paragonie/random_compat suggests installing ext-libsodium (Provides a modern crypto API that can be used to generate random bytes.)doctrine/doctrine-cache-bundle suggests installing symfony/security-acl (For using this bundle to cache ACLs)sensio/framework-extra-bundle suggests installing symfony/psr-http-message-bridge (To use the PSR-7 converters)monolog/monolog suggests installing aws/aws-sdk-php (Allow sending log messagesto AWS services like DynamoDB)monolog/monolog suggests installing doctrine/couchdb (Allow sending log messages to a CouchDB server)monolog/monolog suggests installing ext-amqp (Allow sending log messages to an AMQP server (1.0+ required))monolog/monolog suggests installing ext-mongo (Allow sending log messages to a MongoDB server)monolog/monolog suggests installing graylog2/gelf-php (Allow sending log messages to a GrayLog2 server)monolog/monolog suggests installing mongodb/mongodb (Allow sending log messagesto a MongoDB server via PHP Driver)monolog/monolog suggests installing php-amqplib/php-amqplib (Allow sending log messages to an AMQP server using php-amqplib)monolog/monolog suggests installing php-console/php-console (Allow sending log messages to Google Chrome)monolog/monolog suggests installing rollbar/rollbar (Allow sending log messagesto Rollbar)monolog/monolog suggests installing ruflin/elastica (Allow sending log messagesto an Elastic Search server)monolog/monolog suggests installing sentry/sentry (Allow sending log messages to a Sentry server)Generating autoload files> Incenteev\ParameterHandler\ScriptHandler::buildParametersCreating the "app/config/parameters.yml" fileSome parameters are missing. Please provide them.database_host (127.0.0.1):database_port (null):database_name (symfony):database_user (root):database_password (null):mailer_transport (smtp):mailer_host (127.0.0.1):mailer_user (null):mailer_password (null):secret (ThisTokenIsNotSoSecretChangeIt):> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache // Clearing the cache for the dev environment with debug // true [OK] Cache for the "dev" environment (debug=true) was successfully cleared.> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets Trying to install assets as relative symbolic links. --------- ------------- ----------------            Bundle        Method / Error --------- ------------- ----------------  WARNING   XinXiBundle   copy --------- ------------- ---------------- ! [NOTE] Some assets were installed via copy. If you make changes to these !        assets you have to run this command again. [OK] All assets were successfully installed.> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile> Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget

 運行中以下部分是要輸入的:但是我都預設的斷行符號,過一會再研究

Some parameters are missing. Please provide them.database_host (127.0.0.1):database_port (null):database_name (symfony):database_user (root):database_password (null):mailer_transport (smtp):mailer_host (127.0.0.1):mailer_user (null):mailer_password (null):secret (ThisTokenIsNotSoSecretChangeIt):

 

php_Symfony_項目實戰全過程記錄

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.