Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plz, rename - mime.types #2671

Closed
johnfort opened this issue Sep 21, 2018 · 7 comments
Closed

Plz, rename - mime.types #2671

johnfort opened this issue Sep 21, 2018 · 7 comments

Comments

@johnfort
Copy link

Not a unique name...

@nao-pon
Copy link
Member

nao-pon commented Sep 22, 2018

@fortcms What's the problem you have? Please explain concretely.

@johnfort
Copy link
Author

johnfort commented Sep 22, 2018

@nao-pon How to create namespaces in elFinder?
Coz I want to use different versions at once
With spl_autoload...

@nao-pon
Copy link
Member

nao-pon commented Sep 22, 2018

The mime.types file is automatically loaded internally. It is not necessary to set auto loading. see https://github.com/Studio-42/elFinder/blob/master/php/elFinderVolumeDriver.class.php#L4370-L4399

@johnfort
Copy link
Author

file name - mime.types it is ok.
But i want use namespaces for elffinder.
How to use correct ?)

@nao-pon
Copy link
Member

nao-pon commented Sep 24, 2018

As of now, elFinder supports PHP 5.2. Therefore, in order to introduce the namespace, we have to stop supporting PHP 5.2. That decision should be careful.

@johnfort
Copy link
Author

@nao-pon PHP 5.2 is hopelessly outdated.
My system does not support 5.2))
Tell us how to properly edit the files for my purposes?

@nao-pon
Copy link
Member

nao-pon commented Sep 24, 2018

PHP 5.2 is hopelessly outdated.

I understand it well. However, it is certain that a server running PHP 5.2 still exists. I agree to truncate the outdated PHP, but because of the policy to support PHP 5.2 as a project, it requires development of two lines of legacy and edge. However, there is not enough power for that.

Tell us how to properly edit the files for my purposes?

It is best to rewrite the files under the php directory with PSR-4.

@nao-pon nao-pon closed this as completed Oct 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants