Source for file RobotLoader.php
Documentation is available at RobotLoader.php
- 1: <?php
- 3: /**
- 4: * Nette Framework
- 5: *
- 6: * Copyright (c) 2004, 2009 David Grudl (http://davidgrudl.com)
- 7: *
- 8: * This source file is subject to the "Nette license" that is bundled
- 9: * with this package in the file license.txt.
- 10: *
- 11: * For more information please see http://nettephp.com
- 12: *
- 18: */
- 28: /**
- 29: * Nette auto loader is responsible for loading classes and interfaces.
- 30: *
- 34: */
- 36: {
- 63: /**
- 64: * Register autoloader.
- 66: */
- 68: {
- 75: }
- 79: }
- 82: }
- 86: /**
- 87: * Handles autoloading of classes or interfaces.
- 90: */
- 92: {
- 99: }
- 106: }
- 110: }
- 115: }
- 116: }
- 117: }
- 121: /**
- 122: * Rebuilds class list cache.
- 125: */
- 127: {
- 134: }
- 135: }
- 143: }
- 147: /**
- 148: * Add directory (or directories) to list.
- 152: */
- 154: {
- 159: }
- 161: }
- 162: }
- 166: /**
- 167: * Add class and file name to the list.
- 171: */
- 173: {
- 177: throw new InvalidStateException("Ambiguous class '$class' resolution; defined in $file and in " . $this->list[$class] . ".");
- 178: }
- 180: }
- 184: /**
- 185: * Scan a directory for PHP files, subdirectories and 'netterobots.txt' file.
- 188: */
- 190: {
- 201: }
- 202: }
- 204: }
- 212: // process subdirectories
- 214: // check ignore mask
- 217: }
- 219: }
- 223: }
- 224: }
- 227: }
- 231: /**
- 232: * Analyse PHP file.
- 235: */
- 237: {
- 241: }
- 251: }
- 253: }
- 256: {
- 275: }
- 277: }
- 278: }
- 285: }
- 287: }
- 292: }
- 297: }
- 298: }
- 299: }
- 303: /**
- 304: * Converts comma separated wildcards to regular expression.
- 307: */
- 309: {
- 316: }
- 318: }
- 322: /********************* backend ****************d*g**/
- 326: /**
- 328: */
- 330: {
- 332: }
- 336: /**
- 338: */
- 340: {
- 342: }
- 344: }