I’m currently facing a challenging issue and could use some advice.
A client approached me to integrate the Gutenberg API into their website, which is built with Symfony. The website is deployed and hosted using CyberPanel and works fine there. However, I’m running into several problems when trying to run the project locally:
Deprecated Bundles: The project uses several outdated and abandoned bundles, which cause numerous issues during setup.
Remote Development Issues: I tried using the VS Code SSH extension for remote development. Although I can connect to the server, changes I make don’t seem to take effect, and clearing the cache results in more errors related to the outdated bundles.
My Questions:
Is there a way to work around the deprecated bundles without completely overhauling the codebase?
How can I effectively set up a development environment for such an old project, either locally or remotely?
Here’s the composer.json for more details:
{
"name": "symfony/framework-standard-edition",
"license": "MIT",
"type": "project",
"description": "The "Symfony Standard Edition" distribution",
"autoload": {
"psr-4": {
"AppBundle\": "src/AppBundle",
"WebBundle\": "src/WebBundle",
"UserBundle\": "src/UserBundle",
"MediaBundle\": "src/MediaBundle"
},
"classmap": [ "app/AppKernel.php", "app/AppCache.php" ]
},
"autoload-dev": {
"psr-4": { "Tests\": "tests/" },
"files": [ "vendor/symfony/symfony/src/Symfony/Component/VarDumper/Resources/functions/dump.php" ]
},
"require": {
"php": ">=5.5.9",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/orm": "^2.5",
"egeloen/ckeditor-bundle": "4.0",
"friendsofsymfony/user-bundle": "~2.0@dev",
"hwi/oauth-bundle": "0.5.1",
"incenteev/composer-parameter-handler": "^2.0",
"knplabs/knp-paginator-bundle": "^2.5",
"knplabs/knp-time-bundle": "^1.7",
"liip/imagine-bundle": "1.6.0",
"sensio/distribution-bundle": "^5.0.19",
"sensio/framework-extra-bundle": "^5.0.0",
"stof/doctrine-extensions-bundle": "v1.3.0",
"symfony/monolog-bundle": "^3.1.0",
"symfony/polyfill-apcu": "^1.0",
"symfony/swiftmailer-bundle": "^2.6.4",
"symfony/symfony": "3.4.*",
"twig/twig": "^1.0||^2.0"
},
"require-dev": {
"sensio/generator-bundle": "^3.0",
"symfony/phpunit-bridge": "^3.0"
},
"scripts": {
"symfony-scripts": [
"Incenteev\ParameterHandler\ScriptHandler::buildParameters",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::buildBootstrap",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::clearCache",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installAssets",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::installRequirementsFile",
"Sensio\Bundle\DistributionBundle\Composer\ScriptHandler::prepareDeploymentTarget"
],
"post-install-cmd": [
"@symfony-scripts"
],
"post-update-cmd": [
"@symfony-scripts"
]
},
"config": {
"platform": {
"php": "5.6"
},
"sort-packages": true
},
"extra": {
"symfony-app-dir": "app",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
"symfony-web-dir": "public_html",
"symfony-tests-dir": "tests",
"symfony-assets-install": "relative",
"incenteev-parameters": {
"file": "app/config/parameters.yml"
},
"branch-alias": {
"dev-master": "3.4-dev"
}
}
}
What I’ve Tried:
**Local Development:
**
Attempted to set up the Symfony project locally but faced multiple issues due to deprecated and abandoned bundles specified in composer.json.
Expected: To configure the project locally and integrate the Gutenberg API smoothly.
Actual Result: Ran into errors related to outdated bundles during setup, making local development impractical.
**Remote Development (VS Code SSH Extension):
**
Tried using the VS Code SSH extension to develop directly on the server where the site is hosted.
Expected: To make changes effectively and test the integration of the Gutenberg API.
Actual Result: Changes made did not reflect on the deployed site. Clearing the cache or performing other actions resulted in errors related to the deprecated bundles.
Firass Aguech is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.