Giter Site home page Giter Site logo

Autoloading for classes about generic-gallery HOT 7 CLOSED

liayn avatar liayn commented on June 3, 2024
Autoloading for classes

from generic-gallery.

Comments (7)

liayn avatar liayn commented on June 3, 2024

Forget my point b) again. Overlooked the definition.
The vendor name should still be changed though.

But why do you need this?
require_once(ExtensionManagementUtility::extPath('generic_gallery').'Classes/Domain/Model/Dto/EmConfiguration.php');

from generic-gallery.

liayn avatar liayn commented on June 3, 2024

Another question: why do you exclude PHP 7.1?

from generic-gallery.

fnagel avatar fnagel commented on June 3, 2024

Hey there!

use TYPO3 as vendor in the namespace

Afaik only TYPO3\CMS is reserved but I know the current NS is not optimal. I plan to move ALL my extensions to a custom vendor NS but still undecided which one ;-)

But why do you need this?
require_once(ExtensionManagementUtility::extPath('generic_gallery').'Classes/Domain/Model/Dto/EmConfiguration.php');

Changed this lately (see 9abd1ff) as GeneralUtility::requireOnce has been deprecated. To be honest, I took the idea from this straight from EXT:news and it seems it's changed there too.

why do you exclude PHP 7.1?

Only because it's untested and I don't like to say its ready if I'm not sure about it. Are you able to confirm everything works fine?

from generic-gallery.

liayn avatar liayn commented on June 3, 2024

Vendor= FNAGEL?

Changed this lately (see 9abd1ff) as GeneralUtility::requireOnce has been deprecated. To be honest, I took the idea from this straight from EXT:news and it seems it's changed there too.

Why do you need to require the file at all? We have autoloading in place, so it will find the file anyways.

I didn't test with PHP7.1 but there is really low chance that something really breaks with it, since there are no real breaking changes.

from generic-gallery.

fnagel avatar fnagel commented on June 3, 2024

Vendor= FNAGEL?

or FNA (which might be taken already) or FelixNagel or FelixNagelCom (upper camel case is better, right?). Anyway, I need some time to change this for all my extensions...

Why do you need to require the file at all?

Good question, actually. Doesn't seem to make sense. As said I took this straight from EXT:news: https://github.com/georgringer/news/blob/master/Classes/Utility/EmConfiguration.php#L29

Anyway, seems worth trying to remove it.

I didn't test with PHP7.1 but there is really low chance that something really breaks with it, since there are no real breaking changes.

I don't have any experience with 7.1 yet, so I can't speak from experience but I guess you're right.

from generic-gallery.

liayn avatar liayn commented on June 3, 2024

FNAGEL or FNA

It simply does not matter. And I doubt that even if it is taken that the extensions will have the same name too. So that's unique enough.

require once in ext:news

I would say this is legacy and a leftover. This thing is in there since at least 2015. We can ask Georg for details.

PHP 7.1

We run live sites on 7.1 without any issues.
(Except if you use ext:yag, which really is not 7.1 compatible)

from generic-gallery.

fnagel avatar fnagel commented on June 3, 2024

Closed with b177dcd

from generic-gallery.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.