Chapters
29 Chapters
|
3:14:24
|
Login to bookmark this video
-
Course Code
Subscribe to download the code!Compatible PHP versions: ^7.1.3
Subscribe to download the code!Compatible PHP versions: ^7.1.3
-
This Video
Subscribe to download the video!
Subscribe to download the video!
-
Subtitles
Subscribe to download the subtitles!
Subscribe to download the subtitles!
-
Course Script
Subscribe to download the script!
Subscribe to download the script!
05.
Upgrading Recipes: New Commands!
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^7.3.0",
"ext-iconv": "*",
"antishov/doctrine-extensions-bundle": "^1.4", // v1.4.2
"aws/aws-sdk-php": "^3.87", // 3.110.11
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/annotations": "^1.0", // 1.10.1
"doctrine/doctrine-bundle": "^2.0", // 2.0.6
"doctrine/doctrine-migrations-bundle": "^1.3|^2.0", // 2.1.2
"doctrine/orm": "^2.5.11", // v2.7.2
"doctrine/persistence": "^1.3.7", // 1.3.8
"easycorp/easy-log-handler": "^1.0", // v1.0.9
"http-interop/http-factory-guzzle": "^1.0", // 1.0.0
"knplabs/knp-markdown-bundle": "^1.7", // 1.8.1
"knplabs/knp-paginator-bundle": "^5.0", // v5.0.0
"knplabs/knp-snappy-bundle": "^1.6", // v1.7.0
"knplabs/knp-time-bundle": "^1.8", // v1.11.0
"league/flysystem-aws-s3-v3": "^1.0", // 1.0.23
"league/flysystem-cached-adapter": "^1.0", // 1.0.9
"league/html-to-markdown": "^4.8", // 4.8.2
"liip/imagine-bundle": "^2.1", // 2.3.0
"nexylan/slack-bundle": "^2.1", // v2.2.1
"oneup/flysystem-bundle": "^3.0", // 3.3.0
"php-http/guzzle6-adapter": "^2.0", // v2.0.1
"phpdocumentor/reflection-docblock": "^3.0|^4.0", // 4.3.4
"sensio/framework-extra-bundle": "^5.1", // v5.5.3
"symfony/asset": "5.0.*", // v5.0.2
"symfony/console": "5.0.*", // v5.0.2
"symfony/dotenv": "5.0.*", // v5.0.2
"symfony/flex": "^1.0", // v1.21.6
"symfony/form": "5.0.*", // v5.0.2
"symfony/framework-bundle": "5.0.*", // v5.0.2
"symfony/mailer": "5.0.*", // v5.0.2
"symfony/messenger": "5.0.*", // v5.0.2
"symfony/monolog-bundle": "^3.5", // v3.5.0
"symfony/property-access": "4.4.*|5.0.*", // v5.0.2
"symfony/property-info": "4.4.*|5.0.*", // v5.0.2
"symfony/security-bundle": "5.0.*", // v5.0.2
"symfony/sendgrid-mailer": "5.0.*", // v5.0.2
"symfony/serializer": "4.4.*|5.0.*", // v5.0.2
"symfony/twig-bundle": "5.0.*", // v5.0.2
"symfony/validator": "5.0.*", // v5.0.2
"symfony/webpack-encore-bundle": "^1.4", // v1.7.2
"symfony/yaml": "5.0.*", // v5.0.2
"twig/cssinliner-extra": "^2.12", // v2.12.0
"twig/extensions": "^1.5", // v1.5.4
"twig/extra-bundle": "^2.12|^3.0", // v3.0.1
"twig/inky-extra": "^2.12", // v2.12.0
"twig/twig": "^2.12|^3.0" // v2.14.4
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.0", // 3.3.0
"fzaninotto/faker": "^1.7", // v1.8.0
"symfony/browser-kit": "5.0.*", // v5.0.2
"symfony/debug-bundle": "5.0.*", // v5.0.2
"symfony/maker-bundle": "^1.0", // v1.14.3
"symfony/phpunit-bridge": "5.0.*", // v5.0.2
"symfony/stopwatch": "4.4.*|5.0.*", // v5.0.2
"symfony/var-dumper": "5.0.*", // v5.0.2
"symfony/web-profiler-bundle": "4.4.*|5.0.*" // v5.0.2
}
}
5 Comments
So I'm confused. Will 'composer recipes' only work properly if you have upgraded to 5.0?
I do not see '(Update Available)' next to any recipe in my Symfony 4.4 project, but if I run
composer recipe:install symfony/console --force -v, bootstrap.php and console files update. symfony.lock indicates change from version 4.3.9 to 4.4.4.When I run
composer recipes symfony/consoleI see:`
name : symfony/console
version : 4.4.4
status : auto-generated recipe
files :
├──bin
│ └──console
└──config
└──bootstrap.php
`
No indication of installed or current. All of the installed recipes provide similar results. All status = 'auto-generated recipe'.
Composer version 1.9.3 2020-02-04 12:58:49
Symfony Version 4.4
<blockquote>antishov/doctrine-extensions-bundle v1.4.2 Forked from stof/doctrine-extensions-bundle integration of the gedmo/doctrine-extensions with Symfony 4
behat/transliterator v1.3.0 String transliterator
doctrine/annotations v1.8.0 Docblock Annotations Parser
doctrine/cache 1.10.0 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as ...
doctrine/collections 1.6.4 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 2.12.0 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projec...
doctrine/data-fixtures 1.4.2 Data Fixtures for all Doctrine Object Managers
doctrine/dbal v2.10.1 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and ma...
doctrine/doctrine-bundle 2.0.7 Symfony DoctrineBundle
doctrine/doctrine-fixtures-bundle 3.3.0 Symfony DoctrineFixturesBundle
doctrine/doctrine-migrations-bundle 2.1.2 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.0 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrin...
doctrine/inflector 1.3.1 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.3.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.0 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 2.2.1 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (D...
doctrine/orm v2.7.0 Object-Relational-Mapper for PHP
doctrine/persistence 1.3.6 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctri...
doctrine/reflection v1.1.0 The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some ...
easycorp/easy-log-handler v1.0.9 A handler for Monolog that optimizes log messages to be processed by humans instead of software. Improve y...
egulias/email-validator 2.1.15 A library for validating emails against several RFCs
eightpoints/guzzle-bundle v7.6.1 Integrates Guzzle 6.x, a PHP HTTP Client, into Symfony 2/3/4. Comes with easy and powerful configuration o...
erusev/parsedown 1.7.4 Parser for Markdown.
friendsofsymfony/ckeditor-bundle 2.2.0 Provides a CKEditor integration for your Symfony project.
friendsofsymfony/jsrouting-bundle 2.5.3 A pretty nice way to expose your Symfony2 routing to client applications.
fzaninotto/faker v1.9.1 Faker is a PHP library that generates fake data for you.
gedmo/doctrine-extensions v2.4.39 Doctrine2 behavioral extensions
guzzlehttp/guzzle 6.5.2 Guzzle is a PHP HTTP client library
guzzlehttp/promises v1.3.1 Guzzle promises library
guzzlehttp/psr7 1.6.1 PSR-7 message implementation that also provides common utility methods
jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library
monolog/monolog 1.25.3 Sends your logs to files, sockets, inboxes, databases and various web services
nikic/php-parser v4.3.0 A PHP parser written in PHP
ocramius/package-versions 1.4.2 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
ocramius/proxy-manager 2.2.3 A library providing utilities to generate, instantiate and generally operate with Object Proxies
phing/phing 2.16.3 PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.
phpdocumentor/reflection-common 2.0.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 4.3.4 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve inf...
phpdocumentor/type-resolver 1.0.1 A PSR-5 based resolver of Class names, Types and Structural Element Names
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/http-message 1.0.1 Common interface for HTTP messages
psr/link 1.0.0 Common interfaces for HTTP links
psr/log 1.1.2 Common interface for logging libraries
ralouphie/getallheaders 3.0.3 A polyfill for getallheaders.
sensio/framework-extra-bundle v5.5.3 This bundle provides a way to configure your controllers with annotations
symfony/asset v4.4.4 Symfony Asset Component
symfony/browser-kit v4.4.4 Symfony BrowserKit Component
symfony/cache v4.4.4 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/cache-contracts v2.0.1 Generic abstractions related to caching
symfony/config v4.4.4 Symfony Config Component
symfony/console v4.4.4 Symfony Console Component
symfony/css-selector v4.4.4 Symfony CssSelector Component
symfony/debug v4.4.4 Symfony Debug Component
symfony/debug-bundle v4.4.4 Symfony DebugBundle
symfony/debug-pack v1.0.7 A debug pack for Symfony projects
symfony/dependency-injection v4.4.4 Symfony DependencyInjection Component
symfony/doctrine-bridge v4.4.4 Symfony Doctrine Bridge
symfony/dom-crawler v4.4.4 Symfony DomCrawler Component
symfony/dotenv v4.4.4 Registers environment variables from a .env file
symfony/error-handler v4.4.4 Symfony ErrorHandler Component
symfony/event-dispatcher v4.4.4 Symfony EventDispatcher Component
symfony/event-dispatcher-contracts v1.1.7 Generic abstractions related to dispatching event
symfony/expression-language v4.4.4 Symfony ExpressionLanguage Component
symfony/filesystem v4.4.4 Symfony Filesystem Component
symfony/finder v4.4.4 Symfony Finder Component
symfony/flex v1.6.2 Composer plugin for Symfony
symfony/form v4.4.4 Symfony Form Component
symfony/framework-bundle v4.4.4 Symfony FrameworkBundle
symfony/http-client v4.4.4 Symfony HttpClient component
symfony/http-client-contracts v2.0.1 Generic abstractions related to HTTP clients
symfony/http-foundation v4.4.4 Symfony HttpFoundation Component
symfony/http-kernel v4.4.4 Symfony HttpKernel Component
symfony/inflector v4.4.4 Symfony Inflector Component
symfony/intl v4.4.4 A PHP replacement layer for the C intl extension that includes additional data from the ICU library.
symfony/mailer v4.4.4 Symfony Mailer Component
symfony/maker-bundle v1.14.3 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget...
symfony/mime v4.4.4 A library to manipulate MIME messages
symfony/monolog-bridge v4.4.4 Symfony Monolog Bridge
symfony/monolog-bundle v3.5.0 Symfony MonologBundle
symfony/options-resolver v4.4.4 Symfony OptionsResolver Component
symfony/orm-pack v1.0.8 A pack for the Doctrine ORM
symfony/phpunit-bridge v5.0.4 Symfony PHPUnit Bridge
symfony/polyfill-ctype v1.13.1 Symfony polyfill for ctype functions
symfony/polyfill-intl-icu v1.13.1 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.13.1 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-mbstring v1.13.1 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.13.1 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.13.1 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/process v4.4.4 Symfony Process Component
symfony/profiler-pack v1.0.4 A pack for the Symfony web profiler
symfony/property-access v4.4.4 Symfony PropertyAccess Component
symfony/property-info v4.4.4 Symfony Property Info Component
symfony/routing v4.4.4 Symfony Routing Component
symfony/security-bundle v4.4.4 Symfony SecurityBundle
symfony/security-core v4.4.4 Symfony Security Component - Core Library
symfony/security-csrf v4.4.4 Symfony Security Component - CSRF Library
symfony/security-guard v4.4.4 Symfony Security Component - Guard
symfony/security-http v4.4.4 Symfony Security Component - HTTP Integration
symfony/serializer v4.4.4 Symfony Serializer Component
symfony/serializer-pack v1.0.2 A pack for the Symfony serializer
symfony/service-contracts v2.0.1 Generic abstractions related to writing services
symfony/stopwatch v4.4.4 Symfony Stopwatch Component
symfony/test-pack v1.0.6 A pack for functional and end-to-end testing within a Symfony app
symfony/translation v4.4.4 Symfony Translation Component
symfony/translation-contracts v2.0.1 Generic abstractions related to translation
symfony/twig-bridge v4.4.4 Symfony Twig Bridge
symfony/twig-bundle v4.4.4 Symfony TwigBundle
symfony/twig-pack v1.0.0 A Twig pack for Symfony projects
symfony/validator v4.4.4 Symfony Validator Component
symfony/var-dumper v4.4.4 Symfony mechanism for exploring and dumping PHP variables
symfony/var-exporter v4.4.4 A blend of var_export() + serialize() to turn any serializable data structure to plain PHP code
symfony/web-link v4.4.4 Symfony WebLink Component
symfony/web-profiler-bundle v4.4.4 Symfony WebProfilerBundle
symfony/web-server-bundle v4.4.4 Symfony WebServerBundle
symfony/webpack-encore-bundle v1.7.3 Integration with your Symfony app & Webpack Encore!
symfony/yaml v4.4.4 Symfony Yaml Component
twig/extra-bundle v3.0.3 A Symfony bundle for extra Twig extensions
twig/markdown-extra v3.0.3 A Twig extension for Markdown
twig/twig v3.0.3 Twig, the flexible, fast, and secure template language for PHP
webmozart/assert 1.6.0 Assertions to validate method input/output with nice error messages.
willdurand/jsonp-callback-validator v1.1.0 JSONP callback validator.
zendframework/zend-code 3.4.1 Extensions to the PHP Reflection API, static code scanning, and code generation
zendframework/zend-eventmanager 3.2.1 Trigger and listen to events within a PHP application
</blockquote>
Hey Dave,
I'm sorry you confused about it. Nope, Flex was introduced long time ago in Symfony 3.4. So, it should work in Symfony 4 and 5. If you do not see '(Update Available)' next to your recipe list - probably you really don't have any updates? It makes sense if you create your project from scratch to follow the course instead of downloading course code and start from "start/" directory with us. When you do "composer recipe:install symfony/console --force -v" - --force ignores the "symfony.lock" file and overwrite existing files. Basically, it just reinstall the recipes you already have installed and override your custom changes with default ones. So, if you have some diff after running this command with --force - it might not mean you have some new changes, you just might reset file content to defaults one.
My guess is that you have started a new Symfony 4.4 project from scratch to follow the tutorial and of course it installs all the fresh recipes during the project creation, so no updates for you (yet). You can "wait" for some updates :) or you can download course code instead and start from start/ directory if you want to practice recipe updates right now and don't want to wait for available updates for your new project.
I hope this helps!
Cheers!
Cheers!
Hi,
Thank you for this symfony upgrade series, really interesting. But when I do execute composer recipes I got this error message:
https://ibb.co/KLKq1Xb
Here if you can't see the image:
My Symfony version is 4.3
Hey Rakodev!
Try updating
symfony/flex:We added the new commands used in this course in version 1.6.0. Let me know if that helps!
Cheers!
Hi weaverryan ,
You're right, after I did what you suggest, now it works.
Thank you :)
"Houston: no signs of life"
Start the conversation!