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

Loading classes in Phar

Comments in 'Plugin Development' started by PEMapModder, Apr 11, 2014.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Hi I'm wondering whether classes are automatically loaded in a Phar? As I see, in PluginLoader there are no include path functions. For the main class it is loaded through autoload in class_exists. So where are they loaded?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    As for loading, I refer to the file loading. I mean, if I don't require_once() a file, will it load?

Share This Page

Advertisement