Map-based autoloader across php and phar resources

⌈⌋ ⎇ branch:  Canonic Autoloader


Artifact [954e9ae70d]

Artifact 954e9ae70d58d37bd7447d7193b3d55b86b492f1:

Wiki page [update] by mario 2014-02-13 17:38:25.
D 2014-02-13T17:38:25.508
L update
N text/x-markdown
P 2b92f4269c8ff0098e76f665b688143d0123fe27
U mario
W 803
### Updating the classmap

The self-contained class map can be regenerated by just invoking `shared.phar` from the command line:

    ./shared.phar

Or for the global installation:

    /usr/share/php/shared.phar

Or with prefixing the php interpreter if `phar` is not registered as [binfmt](wiki/binfmt):

    php ./shared.phar

If your php.ini configuration defines it as such, you may need to override the phar accessibility:

    php -dphar.readonly=0 ./shared.phar

It's all silent unless it detected identifier conflicts.


### Where does it read from?

Per default `shared.phar` handles all directories beneath it.


### Debian

The .deb package contains a **trigger** to update shared.phar implicitly when new *system packages* are installed below /usr/share/php/


Z 0682965ca06c98db394a48ce081711b9