I must admit that standard symfony app –

symfony new --full mediapark-manipulator

is full of capacity triggering the error free, as requested – deployment on stage to a Heroku pipeline.

g push heroku master
-----> Building on the Heroku-20 stack
-----> Determining which buildpack to use for this app
-----> PHP app detected
-----> Bootstrapping...
-----> Installing platform packages...
       - php (8.0.7)
       - composer (2.1.2)
       - apache (2.4.46)
       - nginx (1.20.1)
-----> Installing dependencies...
       Composer version 2.1.2 2021-06-07 16:03:06
       Installing dependencies from lock file
       Verifying lock file contents can be installed on current platform.
       Package operations: 97 installs, 0 updates, 0 removals
         - Downloading composer/package-versions-deprecated (1.11.99.2)
         - Downloading symfony/flex (v1.13.3)
         - Downloading symfony/polyfill-php80 (v1.23.0)
         - Downloading symfony/runtime (v5.3.0)
         - Downloading symfony/deprecation-contracts (v2.4.0)
         - Downloading symfony/routing (v5.3.0)
         - Downloading symfony/polyfill-mbstring (v1.23.0)
         - Downloading symfony/polyfill-php73 (v1.23.0)
         - Downloading symfony/http-foundation (v5.3.1)
         - Downloading symfony/http-client-contracts (v2.4.0)
         - Downloading psr/event-dispatcher (1.0.0)
         - Downloading symfony/event-dispatcher-contracts (v2.4.0)
         - Downloading symfony/event-dispatcher (v5.3.0)
         - Downloading symfony/var-dumper (v5.3.0)
         - Downloading psr/log (1.1.4)
         - Downloading symfony/error-handler (v5.3.0)
         - Downloading symfony/http-kernel (v5.3.1)
         - Downloading symfony/finder (v5.3.0)
         - Downloading symfony/filesystem (v5.3.0)
         - Downloading psr/container (1.1.1)
         - Downloading symfony/service-contracts (v2.4.0)
         - Downloading symfony/dependency-injection (v5.3.0)
         - Downloading symfony/polyfill-php81 (v1.23.0)
         - Downloading symfony/config (v5.3.0)
         - Downloading symfony/var-exporter (v5.3.0)
         - Downloading psr/cache (1.0.1)
         - Downloading symfony/cache-contracts (v2.4.0)
         - Downloading symfony/cache (v5.3.0)
         - Downloading symfony/framework-bundle (v5.3.0)
         - Downloading symfony/stopwatch (v5.3.0)
         - Downloading symfony/polyfill-intl-normalizer (v1.23.0)
         - Downloading symfony/polyfill-intl-grapheme (v1.23.0)
         - Downloading symfony/string (v5.3.0)
         - Downloading symfony/console (v5.3.0)
         - Downloading laminas/laminas-zendframework-bridge (1.2.0)
         - Downloading laminas/laminas-eventmanager (3.3.1)
         - Downloading laminas/laminas-code (4.3.0)
         - Downloading friendsofphp/proxy-manager-lts (v1.0.5)
         - Downloading doctrine/event-manager (1.1.1)
         - Downloading doctrine/deprecations (v0.5.3)
         - Downloading doctrine/cache (1.11.3)
         - Downloading doctrine/dbal (2.13.1)
         - Downloading doctrine/migrations (3.1.3)
         - Downloading doctrine/collections (1.6.7)
         - Downloading doctrine/lexer (1.2.1)
         - Downloading doctrine/annotations (1.13.1)
         - Downloading doctrine/persistence (2.2.1)
         - Downloading symfony/doctrine-bridge (v5.3.1)
         - Downloading doctrine/sql-formatter (1.1.1)
         - Downloading doctrine/doctrine-bundle (2.4.2)
         - Downloading doctrine/doctrine-migrations-bundle (3.1.1)
         - Downloading doctrine/instantiator (1.4.0)
         - Downloading doctrine/inflector (2.0.3)
         - Downloading doctrine/common (3.1.2)
         - Downloading doctrine/orm (2.9.3)
         - Downloading webmozart/assert (1.10.0)
         - Downloading phpdocumentor/reflection-common (2.2.0)
         - Downloading phpdocumentor/type-resolver (1.4.0)
         - Downloading phpdocumentor/reflection-docblock (5.2.2)
         - Downloading sensio/framework-extra-bundle (v6.1.5)
         - Downloading symfony/asset (v5.3.0)
         - Downloading symfony/dotenv (v5.3.0)
         - Downloading symfony/expression-language (v5.3.0)
         - Downloading symfony/property-info (v5.3.1)
         - Downloading symfony/property-access (v5.3.0)
         - Downloading symfony/polyfill-intl-icu (v1.23.0)
         - Downloading symfony/options-resolver (v5.3.0)
         - Downloading symfony/form (v5.3.0)
         - Downloading symfony/http-client (v5.3.0)
         - Downloading symfony/intl (v5.3.0)
         - Downloading symfony/polyfill-intl-idn (v1.23.0)
         - Downloading symfony/mime (v5.3.0)
         - Downloading egulias/email-validator (3.1.1)
         - Downloading symfony/mailer (v5.3.0)
         - Downloading monolog/monolog (2.2.0)
         - Downloading symfony/monolog-bridge (v5.3.0)
         - Downloading symfony/monolog-bundle (v3.7.0)
         - Downloading symfony/notifier (v5.3.0)
         - Downloading symfony/process (v5.3.0)
         - Downloading symfony/proxy-manager-bridge (v5.3.0)
         - Downloading symfony/password-hasher (v5.3.0)
         - Downloading symfony/security-core (v5.3.1)
         - Downloading symfony/security-http (v5.3.1)
         - Downloading symfony/security-guard (v5.3.0)
         - Downloading symfony/security-csrf (v5.3.0)
         - Downloading symfony/security-bundle (v5.3.0)
         - Downloading symfony/serializer (v5.3.1)
         - Downloading symfony/translation-contracts (v2.4.0)
         - Downloading symfony/translation (v5.3.0)
         - Downloading twig/twig (v3.3.2)
         - Downloading symfony/twig-bridge (v5.3.0)
         - Downloading symfony/validator (v5.3.1)
         - Downloading psr/link (1.0.0)
         - Downloading symfony/web-link (v5.3.0)
         - Downloading symfony/yaml (v5.3.0)
         - Downloading symfony/twig-bundle (v5.3.0)
         - Downloading twig/extra-bundle (v3.3.1)
         - Installing composer/package-versions-deprecated (1.11.99.2): Extracting archive
         - Installing symfony/flex (v1.13.3): Extracting archive
         - Installing symfony/polyfill-php80 (v1.23.0): Extracting archive
         - Installing symfony/runtime (v5.3.0): Extracting archive
         - Installing symfony/deprecation-contracts (v2.4.0): Extracting archive
         - Installing symfony/routing (v5.3.0): Extracting archive
         - Installing symfony/polyfill-mbstring (v1.23.0): Extracting archive
         - Installing symfony/polyfill-php73 (v1.23.0): Extracting archive
         - Installing symfony/http-foundation (v5.3.1): Extracting archive
         - Installing symfony/http-client-contracts (v2.4.0): Extracting archive
         - Installing psr/event-dispatcher (1.0.0): Extracting archive
         - Installing symfony/event-dispatcher-contracts (v2.4.0): Extracting archive
         - Installing symfony/event-dispatcher (v5.3.0): Extracting archive
         - Installing symfony/var-dumper (v5.3.0): Extracting archive
         - Installing psr/log (1.1.4): Extracting archive
         - Installing symfony/error-handler (v5.3.0): Extracting archive
         - Installing symfony/http-kernel (v5.3.1): Extracting archive
         - Installing symfony/finder (v5.3.0): Extracting archive
         - Installing symfony/filesystem (v5.3.0): Extracting archive
         - Installing psr/container (1.1.1): Extracting archive
         - Installing symfony/service-contracts (v2.4.0): Extracting archive
         - Installing symfony/dependency-injection (v5.3.0): Extracting archive
         - Installing symfony/polyfill-php81 (v1.23.0): Extracting archive
         - Installing symfony/config (v5.3.0): Extracting archive
         - Installing symfony/var-exporter (v5.3.0): Extracting archive
         - Installing psr/cache (1.0.1): Extracting archive
         - Installing symfony/cache-contracts (v2.4.0): Extracting archive
         - Installing symfony/cache (v5.3.0): Extracting archive
         - Installing symfony/framework-bundle (v5.3.0): Extracting archive
         - Installing symfony/stopwatch (v5.3.0): Extracting archive
         - Installing symfony/polyfill-intl-normalizer (v1.23.0): Extracting archive
         - Installing symfony/polyfill-intl-grapheme (v1.23.0): Extracting archive
         - Installing symfony/string (v5.3.0): Extracting archive
         - Installing symfony/console (v5.3.0): Extracting archive
         - Installing laminas/laminas-zendframework-bridge (1.2.0): Extracting archive
         - Installing laminas/laminas-eventmanager (3.3.1): Extracting archive
         - Installing laminas/laminas-code (4.3.0): Extracting archive
         - Installing friendsofphp/proxy-manager-lts (v1.0.5): Extracting archive
         - Installing doctrine/event-manager (1.1.1): Extracting archive
         - Installing doctrine/deprecations (v0.5.3): Extracting archive
         - Installing doctrine/cache (1.11.3): Extracting archive
         - Installing doctrine/dbal (2.13.1): Extracting archive
         - Installing doctrine/migrations (3.1.3): Extracting archive
         - Installing doctrine/collections (1.6.7): Extracting archive
         - Installing doctrine/lexer (1.2.1): Extracting archive
         - Installing doctrine/annotations (1.13.1): Extracting archive
         - Installing doctrine/persistence (2.2.1): Extracting archive
         - Installing symfony/doctrine-bridge (v5.3.1): Extracting archive
         - Installing doctrine/sql-formatter (1.1.1): Extracting archive
         - Installing doctrine/doctrine-bundle (2.4.2): Extracting archive
         - Installing doctrine/doctrine-migrations-bundle (3.1.1): Extracting archive
         - Installing doctrine/instantiator (1.4.0): Extracting archive
         - Installing doctrine/inflector (2.0.3): Extracting archive
         - Installing doctrine/common (3.1.2): Extracting archive
         - Installing doctrine/orm (2.9.3): Extracting archive
         - Installing webmozart/assert (1.10.0): Extracting archive
         - Installing phpdocumentor/reflection-common (2.2.0): Extracting archive
         - Installing phpdocumentor/type-resolver (1.4.0): Extracting archive
         - Installing phpdocumentor/reflection-docblock (5.2.2): Extracting archive
         - Installing sensio/framework-extra-bundle (v6.1.5): Extracting archive
         - Installing symfony/asset (v5.3.0): Extracting archive
         - Installing symfony/dotenv (v5.3.0): Extracting archive
         - Installing symfony/expression-language (v5.3.0): Extracting archive
         - Installing symfony/property-info (v5.3.1): Extracting archive
         - Installing symfony/property-access (v5.3.0): Extracting archive
         - Installing symfony/polyfill-intl-icu (v1.23.0): Extracting archive
         - Installing symfony/options-resolver (v5.3.0): Extracting archive
         - Installing symfony/form (v5.3.0): Extracting archive
         - Installing symfony/http-client (v5.3.0): Extracting archive
         - Installing symfony/intl (v5.3.0): Extracting archive
         - Installing symfony/polyfill-intl-idn (v1.23.0): Extracting archive
         - Installing symfony/mime (v5.3.0): Extracting archive
         - Installing egulias/email-validator (3.1.1): Extracting archive
         - Installing symfony/mailer (v5.3.0): Extracting archive
         - Installing monolog/monolog (2.2.0): Extracting archive
         - Installing symfony/monolog-bridge (v5.3.0): Extracting archive
         - Installing symfony/monolog-bundle (v3.7.0): Extracting archive
         - Installing symfony/notifier (v5.3.0): Extracting archive
         - Installing symfony/process (v5.3.0): Extracting archive
         - Installing symfony/proxy-manager-bridge (v5.3.0): Extracting archive
         - Installing symfony/password-hasher (v5.3.0): Extracting archive
         - Installing symfony/security-core (v5.3.1): Extracting archive
         - Installing symfony/security-http (v5.3.1): Extracting archive
         - Installing symfony/security-guard (v5.3.0): Extracting archive
         - Installing symfony/security-csrf (v5.3.0): Extracting archive
         - Installing symfony/security-bundle (v5.3.0): Extracting archive
         - Installing symfony/serializer (v5.3.1): Extracting archive
         - Installing symfony/translation-contracts (v2.4.0): Extracting archive
         - Installing symfony/translation (v5.3.0): Extracting archive
         - Installing twig/twig (v3.3.2): Extracting archive
         - Installing symfony/twig-bridge (v5.3.0): Extracting archive
         - Installing symfony/validator (v5.3.1): Extracting archive
         - Installing psr/link (1.0.0): Extracting archive
         - Installing symfony/web-link (v5.3.0): Extracting archive
         - Installing symfony/yaml (v5.3.0): Extracting archive
         - Installing symfony/twig-bundle (v5.3.0): Extracting archive
         - Installing twig/extra-bundle (v3.3.1): Extracting archive
       Generating optimized autoload files
       composer/package-versions-deprecated: Generating version class...
       composer/package-versions-deprecated: ...done generating version class
       81 packages you are using are looking for funding.
       Use the `composer fund` command to find out more!
       
       Run composer recipes at any time to see the status of your Symfony recipes.
       
       Executing script cache:clear [KO]
        [KO]
       Script cache:clear returned with error code 255
       !!  Symfony\Component\ErrorHandler\Error\ClassNotFoundError {#85
       !!    #message: """
       !!      Attempted to load class "WebProfilerBundle" from namespace "Symfony\Bundle\WebProfilerBundle".\n
       !!      Did you forget a "use" statement for another namespace?
       !!      """
       !!    #code: 0
       !!    #file: "./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php"
       !!    #line: 94
       !!    trace: {
       !!      ./vendor/symfony/framework-bundle/Kernel/MicroKernelTrait.php:94 { …}
       !!      ./vendor/symfony/http-kernel/Kernel.php:383 { …}
       !!      ./vendor/symfony/http-kernel/Kernel.php:785 { …}
       !!      ./vendor/symfony/http-kernel/Kernel.php:125 { …}
       !!      ./vendor/symfony/framework-bundle/Console/Application.php:168 { …}
       !!      ./vendor/symfony/framework-bundle/Console/Application.php:74 { …}
       !!      ./vendor/symfony/console/Application.php:167 { …}
       !!      ./vendor/symfony/runtime/Runner/Symfony/ConsoleApplicationRunner.php:56 { …}
       !!      ./vendor/autoload_runtime.php:35 { …}
       !!      ./bin/console:11 {
       !!        › 
       !!        › require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
       !!        › 
       !!        arguments: {
       !!          "/tmp/build_0fe58a87/vendor/autoload_runtime.php"
       !!        }
       !!      }
       !!    }
       !!  }
       !!  2021-06-16T16:23:53+00:00 [critical] Uncaught Error: Class "Symfony\Bundle\WebProfilerBundle\WebProfilerBundle" not found
       !!  
       Script @auto-scripts was called via post-install-cmd
 !     ERROR: Dependency installation failed!
 !     
 !     The 'composer install' process failed with an error. The cause
 !     may be the download or installation of packages, or a pre- or
 !     post-install hook (e.g. a 'post-install-cmd' item in 'scripts')
 !     in your 'composer.json'.
 !     
 !     Typical error cases are out-of-date or missing parts of code,
 !     timeouts when making external connections, or memory limits.
 !     
 !     Check the above error output closely to determine the cause of
 !     the problem, ensure the code you're pushing is functioning
 !     properly, and that all local changes are committed correctly.
 !     
 !     For more information on builds for PHP on Heroku, refer to
 !     https://devcenter.heroku.com/articles/php-support
 !     Push rejected, failed to compile PHP app.
 !     Push failed
Mediapark Manipulator
Photo by Joel Rivera-Camacho on Unsplash
%d bloggers like this: