Giter Site home page Giter Site logo

Avoid using Facades about mybb2 HOT 13 CLOSED

mybb avatar mybb commented on June 19, 2024
Avoid using Facades

from mybb2.

Comments (13)

JN-Jones avatar JN-Jones commented on June 19, 2024

How do we want to handle the routes.php and breadcrumbs.php files? Use the facades there? Or put $router = app('Illuminate\Path\To\Router')at the top and use $router->get(...) then?

from mybb2.

euantorano avatar euantorano commented on June 19, 2024

I'm happy to just use Facades in those two instances. Same with things like the bootstrap.php file.

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

Good, will work through the rest then today / tomorrow

from mybb2.

wpillar avatar wpillar commented on June 19, 2024

Agreed.

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

Can we close this? Or do we want to keep it open for future reference? Also I'm not sure how many facades are used in our packages.

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

@euantorano @wpillar

from mybb2.

wpillar avatar wpillar commented on June 19, 2024

Have the existing instances of Facades been fixed in this repository?

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

Mostly yes. Only the ConfirmationManager needs to be fixed (that class needs some love anyways) afaik.

from mybb2.

wpillar avatar wpillar commented on June 19, 2024

Ok, so either close this and create a new issue for ConfirmationManager or leave this one open and note somewhere what's left to do in order for this to be closed.

Personally, I would do the former.

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

The ConfirmationManager needs some other things too. The main question was how we want to handle our packages: create a PR referencing this issue or simply fix them when they're noticed.

from mybb2.

wpillar avatar wpillar commented on June 19, 2024

Our packages are separate repositories, aren't they?

from mybb2.

JN-Jones avatar JN-Jones commented on June 19, 2024

Yeah:

from mybb2.

wpillar avatar wpillar commented on June 19, 2024

Great, so they should have their own issues in their own repositories. This issue is for the mybb2 project and should be closed once the mybb2 project and the code it exclusively owns is free of Facades.

from mybb2.

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.