J4 Issue ?
avatar C-Lodder
C-Lodder
4 Jan 2018

Use the namespaced classes throughout the rest of the CMS

Directories:

  • installation
  • libraries
  • libraries/fields
  • components
  • plugins
  • modules
  • layouts
  • administrator/components
  • administrator/modules

@mbabker do we need to do the tests directory too?

avatar C-Lodder C-Lodder - open - 4 Jan 2018
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jan 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Jan 2018
avatar Anu1601CS
Anu1601CS - comment - 5 Jan 2018

@C-Lodder can I do this for plugins.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/19298.

avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jan 2018
Status New Discussion
Build staging 4.0-dev
avatar franz-wohlkoenig franz-wohlkoenig - change - 5 Jan 2018
Category Code style
avatar C-Lodder
C-Lodder - comment - 5 Jan 2018

@Anu1601CS sure feel free

avatar Anu1601CS
Anu1601CS - comment - 27 Jan 2018

@C-Lodder please mark plugins done!
Next, I am working with administrator/components :)

avatar C-Lodder
C-Lodder - comment - 28 Jan 2018

Please hold off on that for now. Lets wait till staging has been merged into 4.0-dev. Because it's a big task, we'll separate it and I'll take half of it to take some of the work load from you

avatar C-Lodder C-Lodder - change - 28 Jan 2018
The description was changed
avatar C-Lodder C-Lodder - edited - 28 Jan 2018
avatar C-Lodder C-Lodder - change - 28 Jan 2018
The description was changed
avatar C-Lodder C-Lodder - edited - 28 Jan 2018
avatar C-Lodder C-Lodder - change - 28 Jan 2018
The description was changed
avatar C-Lodder C-Lodder - edited - 28 Jan 2018
avatar Anu1601CS
Anu1601CS - comment - 28 Jan 2018

Ok, Thanks

avatar dgt41
dgt41 - comment - 28 Jan 2018

@C-Lodder can you add the fields in this list? PR: #19297

avatar dgt41
dgt41 - comment - 28 Jan 2018

I mean break down Libraries to it's individual packages, will be easier for anyone to pick any one and do it, otherwise this folder is huge and will be quite a big PR to review or create it in the first place

avatar C-Lodder C-Lodder - change - 28 Jan 2018
The description was changed
avatar C-Lodder C-Lodder - edited - 28 Jan 2018
avatar KarstenFrostholm
KarstenFrostholm - comment - 31 Jan 2018

Hi

I have written a code that can change class names and find namespace.

I have attached the code, a log file, and an example of a migration. (code from sonday)

Use php version 7.1 or newer.

In ConvertClassAndNamespaceJoomla.php find:
$basePathSource = "C:\xampp72\joomla4alfa\htdocs";
$basePathConverted = "C:\xampp72\joomla4alfa\converted";
and adapt as needed

A clean of $basePathConverted path will only be performed if it is not the same as $basePathSource.

Use $basePathConverted with the same value as $basePathSource, and $basePathSource will update.

run: php ConvertClassAndNamespaceJoomla.php> Migration.log
The program can be run several times if you wish.

I have not worked with liberies since I'm not sure what is wanted here.
Come up with an explanation and I will try.

Should there be any need for customization or more micration features, say to.
Hope that the program is som thing Joomla can benefit from.

with best regards
Karsten F.

Migration.zip (2MByte)

avatar KarstenFrostholm
KarstenFrostholm - comment - 31 Jan 2018

Sorry I do not write clearer.

This code can correct / modify all code included in joomla 4, minus libaryes.

It can be used to perform a quick shift or customization of * .PHP and installation.xml on components.
I deliver this program, in this way, as I'm not sure of the sequence that you would like this change to be done in.

It is performed on a local copy of the development branch of joomla 4.

A copy of all the changed files is created in a folder of the same structure.
A log file with a list is written the changed files along with the number of changes per file.

Hope this created some clarity about what I'm trying to contribute.

I am unfortunately not used to working with git as software reposotory.
I also realize that I do not just make 1200 files in a comit.

It can then be used by those who are deeply involved.

It is meant as a fellowship help. I'm working on this kind of migration for the last many years. One is to write this kind of code, another is to know when you're ready to use.

Yours sincerely
Karsten

avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar brianteeman
brianteeman - comment - 22 May 2018

@wilsonge is this meta issue being updated and is it still relevant

avatar franz-wohlkoenig franz-wohlkoenig - change - 23 May 2018
Status Discussion Information Required
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 23 May 2018
avatar laoneo
laoneo - comment - 23 May 2018

Yes, it is, as long as we have code like \JFactory:: in our code base.

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Jun 2018
Status Information Required Discussion
avatar brianteeman brianteeman - change - 1 Jul 2018
The description was changed
avatar brianteeman brianteeman - edited - 1 Jul 2018
avatar brianteeman brianteeman - change - 1 Jul 2018
The description was changed
avatar brianteeman brianteeman - edited - 1 Jul 2018
avatar brianteeman brianteeman - change - 24 Jul 2018
The description was changed
avatar brianteeman brianteeman - edited - 24 Jul 2018
avatar brianteeman brianteeman - change - 2 Aug 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 2 Aug 2018
avatar brianteeman brianteeman - change - 19 Aug 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-08-19 10:25:59
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 19 Aug 2018

Closed as the specific task is completed - the installer is still a general wip

avatar brianteeman brianteeman - close - 19 Aug 2018

Add a Comment

Login with GitHub to post a comment