Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How did PM load all classes in all files and unloadable?!

Comments in 'Plugin Development' started by PocketKiller, Mar 12, 2016.

  1. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    I mean so, in Apache, classes don't load automatically, so you should use require, but how did PM load them automatically?
    because I hate using require everytime.
    Screenshot (90).png Screenshot (91).png
    Last edited: Mar 12, 2016
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    spl\SplClassLoader and spl\ClassLoader seem to be doing it...
    PEMapModder likes this.
  3. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    oops, maybe I should have posted this on "Help"
  4. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    spl_autoload_register...
    PEMapModder likes this.
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    It is actually offtopic.
    Legoboy0215 likes this.

Share This Page

Advertisement