Migrate to symfony 4 from symfony 3.4 - php

My project is currently setup with 3.4 version of symfony. I want to move to symfony4. So I moved to symfony4 as per suggestions in http://symfony.com/doc/current/setup/upgrade_major.html.
In my current project there are many custom bundles are created in src directory. But now in Symfony 4 there is no bundle structure.
So please guide me how can I proceed with my existing bundles in Symfony4?
Thanks in advance...

You can follow the tuto made by Symfony, right here: https://symfony.com/doc/current/setup/upgrade_major.html (you already done that)
And then to update you project structure: https://symfony.com/doc/current/setup/flex.html#upgrade-to-flex

Related

Symfony 2.8 application truble

i've a problem with an application created with symfony 2.8.
I use symfony 5.2 but i have to do some improvement in an application builded whith symfony 2.8(not mine).
I've tried to install symfony 2.8 but is deprecated and don't work.
I have 5 directories of 2.8 project :
vendor
app
src
doc
bin
i create a project
symfony new my_project_name
then i paste the 5 directories and doesen't work.
i've tried use parameter --version=2.8 but nothing...
Any suggestion ? thanks in advance.

Yii2 Framework - Custom Installation Template

When I access to Yiisoft account on Github:
https://github.com/yiisoft
I see 3 pinned repos: Yii2, Yii2-app-basic and Yii2-app-advanced.
I know When I run the command:
composer create-project [template] [project-name]
I can create a project using one of installation templates. Also I know on the composer.json on this templates is set yii2 framework and yii2 bootstrap as dependencies, so they get downloaded.
What about if I want to create my own installation template, is there a guide how to do it?. I know it would not be that productive but just wondering out of curiosity.
UPDATE
I have noticed that just a couple hours ago this page was published:http://www.yiiframework.com/doc-2.0/guide-tutorial-start-from-scratch.html
but still it is based on the basic installation template, not a totally custom one.

Symfony downgrade from 3.2 to 2.8 lts

I have started with symfony 3.2 project, then changed version in composer to 2.8 (which is long term support).
Problem is that folders structure still remains 3.2 project. Is there any way to change (not manually) folders structure to 2.8?
Of course you can downgrade. You might choose the old Symfony2 directory structure (deprecated) or keeping the current Symfony3 structure.
In either ways, please take a look at How to Override Symfony's Directory Structure.
Using the Symfony3 directory structure
If you choose to use the Symfony3 structure, it's easy as following up this article about upgrading from Symfony2 to Symfony3's directory structure.
Using the Symfony2 directory structure
First you'll have to rename and move some files (like var/cache/, var/logs/, etc.). Afterwards you'll have to change the autoloading file in app/autoload.php (formerly var/autoload.php which you must move too).
Basically it's the same in reverse order like upgrading from Symfony2 to Symfony3 (mentioned above).
Please be aware that Symfony 3.4 (next LTS) will be released in November 2017, so in my opinion it's not worth to downgrade, and then re-upgrade. Upgrading from 3.2 to 3.4 will be small and fast, Upgrading from 2.8 to 3.4 could be much more to do ...

Symfony3 file uploader

Welcome,
I'm a little newbie in symfony but I wanna create website with upload file. I found good bundle https://github.com/SymfonyContrib/FileFieldBundle but when I try add it by composer then it's not possible becouse lastest correct Symfony version is 2.3. Anyone know how import it to Symfony3?
Or anyone have some bundle with file uploader based on jQuery File Upload working with Symfony3?
Thanks for help
You can't use that bundle unless the maintainer of the bundle migrates it to Symfony 3. In his composer.json the required symfony version is stated as ~2.3 which is equivalent to >=2.3 <3.0.0 (composer version syntax). You are of course free to fork the bundle on github and make the required changes yourself to make it compatible with Symfony 3 and issue a pull request.

Installing Symfony CMF in existing project

I would like to install Symfony CMF into an existing Symfony2 project. I just want editing a few pages with CMF.
I am using this documentation : http://symfony.com/doc/master/cmf/book/installation.html ; just for new installation ...
did you run into a specific issue?
anyway you might also find this link useful http://symfony.com/doc/master/cmf/cookbook/editions/cmf_core.html

Categories