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: {
- 66: /**
- 67: */
- 69: {
- 72: }
- 73: }
- 77: /**
- 78: * Register autoloader.
- 80: */
- 82: {
- 89: }
- 93: }
- 96: }
- 100: /**
- 101: * Handles autoloading of classes or interfaces.
- 104: */
- 106: {
- 113: }
- 120: }
- 124: }
- 129: }
- 130: }
- 131: }
- 135: /**
- 136: * Rebuilds class list cache.
- 139: */
- 141: {
- 151: }
- 152: }
- 158: }
- 162: /**
- 163: * Add directory (or directories) to list.
- 167: */
- 169: {
- 174: }
- 176: }
- 177: }
- 181: /**
- 182: * Add class and file name to the list.
- 186: */
- 188: {
- 192: throw new InvalidStateException("Ambiguous class '$class' resolution; defined in $file and in " . $this->list[$class] . ".");
- 193: }
- 195: }
- 199: /**
- 200: * Scan a directory for PHP files, subdirectories and 'netterobots.txt' file.
- 203: */
- 205: {
- 214: }
- 215: }
- 217: }
- 224: // process subdirectories
- 226: // check ignore mask
- 229: }
- 231: }
- 238: }
- 239: }
- 240: }
- 243: }
- 247: /**
- 248: * Analyse PHP file.
- 251: */
- 253: {
- 257: }
- 267: }
- 269: }
- 272: {
- 291: }
- 293: }
- 294: }
- 301: }
- 303: }
- 308: }
- 313: }
- 314: }
- 315: }
- 319: /**
- 320: * Converts comma separated wildcards to regular expression.
- 323: */
- 325: {
- 332: }
- 334: }
- 338: /********************* backend ****************d*g**/
- 342: /**
- 344: */
- 346: {
- 348: }
- 352: /**
- 354: */
- 356: {
- 358: }
- 362: /**
- 364: */
- 366: {
- 368: }
- 370: }