Giter Site home page Giter Site logo

Comments (7)

flaviozantut avatar flaviozantut commented on May 4, 2024

I'm having the same problem.

from framework.

raftalks avatar raftalks commented on May 4, 2024

I am assuming the Translation package of illuminate needs some adjustment to solve this problem.

from framework.

taylorotwell avatar taylorotwell commented on May 4, 2024

OK, the problem is I need to make the package call from the boot method and not the register method. The issue you're running into is the TranslationServiceProvider hasn't been registered yet.

from framework.

taylorotwell avatar taylorotwell commented on May 4, 2024

Fixed.

from framework.

jasonlewis avatar jasonlewis commented on May 4, 2024

Digging this up again @taylorotwell... What would you suggest people do if they need configuration available during the register process? Because you can't bootstrap a package (just the lang side of it anyway) from the register() method should people be registering the service within the boot() if they need configuration. Or should they just use $this->app['config']->package() to do the config side manually in the register() method if they need to.

Cheers.

from framework.

franzliedke avatar franzliedke commented on May 4, 2024

I'm confused, Jason. Shouldn't the config provider be registered before all those service providers?

from framework.

raftalks avatar raftalks commented on May 4, 2024

@jasonlewis I see you have a point and I like to to say that I am using boot method as suggested by Taylor for now but using $this->app['config']->package() sounds good to me.

from framework.

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.