Chapters
37 Chapters
|
3:44:49
|
Login to bookmark this video
-
Course Code
Login or register to download the code!Compatible PHP versions: ^7.1.3
Login or register to download the code!Compatible PHP versions: ^7.1.3
-
This Video
Login or register to download the video!
Login or register to download the video!
-
Subtitles
Login or register to download the subtitles!
Login or register to download the subtitles!
-
Course Script
Login or register to download the script!
Login or register to download the script!
19.
Manually Profile (Instrument) Part of your Code
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!
This tutorial can be used to learn how to profile any app - including Symfony 5.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"blackfire/php-sdk": "^1.20", // v1.20.0
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/annotations": "^1.0", // v1.8.0
"doctrine/doctrine-bundle": "^1.6.10|^2.0", // 1.11.2
"doctrine/doctrine-migrations-bundle": "^1.3|^2.0", // v2.0.0
"doctrine/orm": "^2.5.11", // v2.6.4
"phpdocumentor/reflection-docblock": "^3.0|^4.0", // 4.3.2
"sensio/framework-extra-bundle": "^5.4", // v5.5.1
"symfony/console": "4.3.*", // v4.3.10
"symfony/dotenv": "4.3.*", // v4.3.10
"symfony/flex": "^1.9", // v1.21.6
"symfony/form": "4.3.*", // v4.3.10
"symfony/framework-bundle": "4.3.*", // v4.3.9
"symfony/http-client": "4.3.*", // v4.3.10
"symfony/property-access": "4.3.*", // v4.3.10
"symfony/property-info": "4.3.*", // v4.3.10
"symfony/security-bundle": "4.3.*", // v4.3.10
"symfony/serializer": "4.3.*", // v4.3.10
"symfony/twig-bundle": "4.3.*", // v4.3.10
"symfony/validator": "4.3.*", // v4.3.10
"symfony/webpack-encore-bundle": "^1.6", // v1.7.2
"symfony/yaml": "4.3.*", // v4.3.10
"twig/extensions": "^1.5" // v1.5.4
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2", // 3.2.2
"easycorp/easy-log-handler": "^1.0.7", // v1.0.9
"fzaninotto/faker": "^1.8", // v1.8.0
"symfony/browser-kit": "4.3.*", // v4.3.10
"symfony/css-selector": "4.3.*", // v4.3.10
"symfony/debug-bundle": "4.3.*", // v4.3.10
"symfony/maker-bundle": "^1.13", // v1.14.3
"symfony/monolog-bundle": "^3.0", // v3.5.0
"symfony/phpunit-bridge": "^5.0", // v5.0.3
"symfony/stopwatch": "4.3.*", // v4.3.10
"symfony/var-dumper": "4.3.*", // v4.3.10
"symfony/web-profiler-bundle": "4.3.*" // v4.3.10
}
}
4 Comments
Interesting, but I seem to have a problem when requiring the the blackfire-sdk. As it requires the composer/ca-bundle 1.2.7 I get the following error :
"Attempted to call an undefined method named "getName" of class "Composer\CaBundle\CaBundle"
I am running this on a php7.4.6 alpine docker container with composer 1.10.6 on it. (I can give you the link to the github file if you want). My project is based on Symfony 5.0.8 (even though, I guess, this shouldn't matter for blackfire).
I have started looking for composer undefined method errors but have not yet found anything that has something to do with the CaBundle.
Anyway this is not a priority for me for now and the cursus is great ! If anyone has had this issue and knows how to solve it I will be very grateful.
Hey DennisdeBest!
Hmm, very curious! You're totally right that Symfony 5 shouldn't matter. Hmm, if you have the code on GitHub handy, yes, I would love to have it :). We'll want to debug this - because it sounds very odd, could be a bug somewhere - and if you have a setup already handy, that would help.
Thanks!
I made a basic Symfony 5.0.8 website starter that runs on the php:php:7.4.6-fpm-alpine (with some configuration) that works fine at the start but has the error as soon as composer requires the blackfire-sdk. Here is a link : https://github.com/Dennisde... there is more information in the README. Thanks for the quick reply
Hey DennisdeBest!
You found a bug! Well, a few other people have found it also - https://github.com/symfony/... - but nice job! I have just commented on that bug to see if we can "push" a fix forward. For now, if you want to work around, as the comments say, you would need to manually use an older version of symfony/flex.
Cheers!
"Houston: no signs of life"
Start the conversation!