Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-2535

Introduce MgnlContext.getWebContext()

    XMLWordPrintable

Details

    • New Feature
    • Resolution: Fixed
    • Major
    • 4.0
    • None
    • core
    • None

    Description

      There is a lot of code that does

      final Context mgnlCtx = MgnlContext.getInstance();
      if (mgnlCtx instanceof WebContext)
      

      A new getWebContextOrNull() would help - maybe along a getWebContext() method, which would throw an IllegalStateException, much like getInstance() does.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              gjoseph Magnolia International
              gjoseph Magnolia International
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: