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 https://nette.org
- 12: *
- 19: */
- 29: /**
- 30: * Nette auto loader is responsible for loading classes and interfaces.
- 31: *
- 35: */
- 37: {
- 64: /**
- 65: * Handles autoloading of classes or interfaces.
- 68: */
- 70: {
- 86: }
- 90: }
- 91: }
- 98: }
- 103: }
- 108: }
- 115: }
- 122: }
- 123: }
- 124: }
- 128: /**
- 129: * Rebuilds class list cache.
- 131: */
- 133: {
- 141: }
- 142: }
- 146: /**
- 147: * Add directory (or directories) to list.
- 151: */
- 153: {
- 158: }
- 160: }
- 161: }
- 165: /**
- 166: * Add class and file name to the list.
- 170: */
- 172: {
- 175: // throwing exception is not possible, Nette\Debug converts errors to exceptions
- 176: die("Ambiguous class '$class' resolution; defined in $file and in " . $this->list[$class] . ".");
- 177: }
- 179: }
- 183: /**
- 184: * Scan a directory for PHP files, subdirectories and 'netterobots.txt' file.
- 187: */
- 189: {
- 200: }
- 201: }
- 203: }
- 211: // process subdirectories
- 213: // check ignore mask
- 216: }
- 218: }
- 222: }
- 223: }
- 226: }
- 230: /**
- 231: * Analyse PHP file.
- 234: */
- 236: {
- 240: }
- 250: }
- 252: }
- 255: {
- 274: }
- 276: }
- 277: }
- 284: }
- 286: }
- 291: }
- 296: }
- 297: }
- 298: }
- 302: /**
- 303: * Converts comma separated wildcards to regular expression.
- 306: */
- 308: {
- 315: }
- 317: }
- 321: /********************* backend ****************d*g**/
- 325: /**
- 327: */
- 329: {
- 331: }
- 335: /**
- 337: */
- 339: {
- 341: }
- 343: }
