PageRenderTime 58ms CodeModel.GetById 25ms RepoModel.GetById 0ms app.codeStats 2ms

/_ide_helper.php

https://github.com/mstnorris/wb_bak
PHP | 12298 lines | 3123 code | 1129 blank | 8046 comment | 0 complexity | bf229751caff24cc4addb42a81f6a6ba MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /**
  3. * An helper file for Laravel 4, to provide autocomplete information to your IDE
  4. * Generated for Laravel 4.2.16 on 2015-01-10.
  5. *
  6. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  7. * @see https://github.com/barryvdh/laravel-ide-helper
  8. */
  9. namespace {
  10. exit("This file should not be included, only analyzed by your IDE");
  11. class App extends \Illuminate\Support\Facades\App{
  12. /**
  13. * Bind the installation paths to the application.
  14. *
  15. * @param array $paths
  16. * @return void
  17. * @static
  18. */
  19. public static function bindInstallPaths($paths){
  20. \Illuminate\Foundation\Application::bindInstallPaths($paths);
  21. }
  22. /**
  23. * Get the application bootstrap file.
  24. *
  25. * @return string
  26. * @static
  27. */
  28. public static function getBootstrapFile(){
  29. return \Illuminate\Foundation\Application::getBootstrapFile();
  30. }
  31. /**
  32. * Start the exception handling for the request.
  33. *
  34. * @return void
  35. * @static
  36. */
  37. public static function startExceptionHandling(){
  38. \Illuminate\Foundation\Application::startExceptionHandling();
  39. }
  40. /**
  41. * Get or check the current application environment.
  42. *
  43. * @param mixed
  44. * @return string
  45. * @static
  46. */
  47. public static function environment(){
  48. return \Illuminate\Foundation\Application::environment();
  49. }
  50. /**
  51. * Determine if application is in local environment.
  52. *
  53. * @return bool
  54. * @static
  55. */
  56. public static function isLocal(){
  57. return \Illuminate\Foundation\Application::isLocal();
  58. }
  59. /**
  60. * Detect the application's current environment.
  61. *
  62. * @param array|string $envs
  63. * @return string
  64. * @static
  65. */
  66. public static function detectEnvironment($envs){
  67. return \Illuminate\Foundation\Application::detectEnvironment($envs);
  68. }
  69. /**
  70. * Determine if we are running in the console.
  71. *
  72. * @return bool
  73. * @static
  74. */
  75. public static function runningInConsole(){
  76. return \Illuminate\Foundation\Application::runningInConsole();
  77. }
  78. /**
  79. * Determine if we are running unit tests.
  80. *
  81. * @return bool
  82. * @static
  83. */
  84. public static function runningUnitTests(){
  85. return \Illuminate\Foundation\Application::runningUnitTests();
  86. }
  87. /**
  88. * Force register a service provider with the application.
  89. *
  90. * @param \Illuminate\Support\ServiceProvider|string $provider
  91. * @param array $options
  92. * @return \Illuminate\Support\ServiceProvider
  93. * @static
  94. */
  95. public static function forceRegister($provider, $options = array()){
  96. return \Illuminate\Foundation\Application::forceRegister($provider, $options);
  97. }
  98. /**
  99. * Register a service provider with the application.
  100. *
  101. * @param \Illuminate\Support\ServiceProvider|string $provider
  102. * @param array $options
  103. * @param bool $force
  104. * @return \Illuminate\Support\ServiceProvider
  105. * @static
  106. */
  107. public static function register($provider, $options = array(), $force = false){
  108. return \Illuminate\Foundation\Application::register($provider, $options, $force);
  109. }
  110. /**
  111. * Get the registered service provider instance if it exists.
  112. *
  113. * @param \Illuminate\Support\ServiceProvider|string $provider
  114. * @return \Illuminate\Support\ServiceProvider|null
  115. * @static
  116. */
  117. public static function getRegistered($provider){
  118. return \Illuminate\Foundation\Application::getRegistered($provider);
  119. }
  120. /**
  121. * Resolve a service provider instance from the class name.
  122. *
  123. * @param string $provider
  124. * @return \Illuminate\Support\ServiceProvider
  125. * @static
  126. */
  127. public static function resolveProviderClass($provider){
  128. return \Illuminate\Foundation\Application::resolveProviderClass($provider);
  129. }
  130. /**
  131. * Load and boot all of the remaining deferred providers.
  132. *
  133. * @return void
  134. * @static
  135. */
  136. public static function loadDeferredProviders(){
  137. \Illuminate\Foundation\Application::loadDeferredProviders();
  138. }
  139. /**
  140. * Register a deferred provider and service.
  141. *
  142. * @param string $provider
  143. * @param string $service
  144. * @return void
  145. * @static
  146. */
  147. public static function registerDeferredProvider($provider, $service = null){
  148. \Illuminate\Foundation\Application::registerDeferredProvider($provider, $service);
  149. }
  150. /**
  151. * Resolve the given type from the container.
  152. *
  153. * (Overriding Container::make)
  154. *
  155. * @param string $abstract
  156. * @param array $parameters
  157. * @return mixed
  158. * @static
  159. */
  160. public static function make($abstract, $parameters = array()){
  161. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  162. }
  163. /**
  164. * Determine if the given abstract type has been bound.
  165. *
  166. * (Overriding Container::bound)
  167. *
  168. * @param string $abstract
  169. * @return bool
  170. * @static
  171. */
  172. public static function bound($abstract){
  173. return \Illuminate\Foundation\Application::bound($abstract);
  174. }
  175. /**
  176. * "Extend" an abstract type in the container.
  177. *
  178. * (Overriding Container::extend)
  179. *
  180. * @param string $abstract
  181. * @param \Closure $closure
  182. * @return void
  183. * @throws \InvalidArgumentException
  184. * @static
  185. */
  186. public static function extend($abstract, $closure){
  187. \Illuminate\Foundation\Application::extend($abstract, $closure);
  188. }
  189. /**
  190. * Register a "before" application filter.
  191. *
  192. * @param \Closure|string $callback
  193. * @return void
  194. * @static
  195. */
  196. public static function before($callback){
  197. \Illuminate\Foundation\Application::before($callback);
  198. }
  199. /**
  200. * Register an "after" application filter.
  201. *
  202. * @param \Closure|string $callback
  203. * @return void
  204. * @static
  205. */
  206. public static function after($callback){
  207. \Illuminate\Foundation\Application::after($callback);
  208. }
  209. /**
  210. * Register a "finish" application filter.
  211. *
  212. * @param \Closure|string $callback
  213. * @return void
  214. * @static
  215. */
  216. public static function finish($callback){
  217. \Illuminate\Foundation\Application::finish($callback);
  218. }
  219. /**
  220. * Register a "shutdown" callback.
  221. *
  222. * @param callable $callback
  223. * @return void
  224. * @static
  225. */
  226. public static function shutdown($callback = null){
  227. \Illuminate\Foundation\Application::shutdown($callback);
  228. }
  229. /**
  230. * Register a function for determining when to use array sessions.
  231. *
  232. * @param \Closure $callback
  233. * @return void
  234. * @static
  235. */
  236. public static function useArraySessions($callback){
  237. \Illuminate\Foundation\Application::useArraySessions($callback);
  238. }
  239. /**
  240. * Determine if the application has booted.
  241. *
  242. * @return bool
  243. * @static
  244. */
  245. public static function isBooted(){
  246. return \Illuminate\Foundation\Application::isBooted();
  247. }
  248. /**
  249. * Boot the application's service providers.
  250. *
  251. * @return void
  252. * @static
  253. */
  254. public static function boot(){
  255. \Illuminate\Foundation\Application::boot();
  256. }
  257. /**
  258. * Register a new boot listener.
  259. *
  260. * @param mixed $callback
  261. * @return void
  262. * @static
  263. */
  264. public static function booting($callback){
  265. \Illuminate\Foundation\Application::booting($callback);
  266. }
  267. /**
  268. * Register a new "booted" listener.
  269. *
  270. * @param mixed $callback
  271. * @return void
  272. * @static
  273. */
  274. public static function booted($callback){
  275. \Illuminate\Foundation\Application::booted($callback);
  276. }
  277. /**
  278. * Run the application and send the response.
  279. *
  280. * @param \Symfony\Component\HttpFoundation\Request $request
  281. * @return void
  282. * @static
  283. */
  284. public static function run($request = null){
  285. \Illuminate\Foundation\Application::run($request);
  286. }
  287. /**
  288. * Add a HttpKernel middleware onto the stack.
  289. *
  290. * @param string $class
  291. * @param array $parameters
  292. * @return $this
  293. * @static
  294. */
  295. public static function middleware($class, $parameters = array()){
  296. return \Illuminate\Foundation\Application::middleware($class, $parameters);
  297. }
  298. /**
  299. * Remove a custom middleware from the application.
  300. *
  301. * @param string $class
  302. * @return void
  303. * @static
  304. */
  305. public static function forgetMiddleware($class){
  306. \Illuminate\Foundation\Application::forgetMiddleware($class);
  307. }
  308. /**
  309. * Handle the given request and get the response.
  310. *
  311. * Provides compatibility with BrowserKit functional testing.
  312. *
  313. * @implements HttpKernelInterface::handle
  314. * @param \Symfony\Component\HttpFoundation\Request $request
  315. * @param int $type
  316. * @param bool $catch
  317. * @return \Symfony\Component\HttpFoundation\Response
  318. * @throws \Exception
  319. * @static
  320. */
  321. public static function handle($request, $type = 1, $catch = true){
  322. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  323. }
  324. /**
  325. * Handle the given request and get the response.
  326. *
  327. * @param \Illuminate\Http\Request $request
  328. * @return \Symfony\Component\HttpFoundation\Response
  329. * @static
  330. */
  331. public static function dispatch($request){
  332. return \Illuminate\Foundation\Application::dispatch($request);
  333. }
  334. /**
  335. * Call the "finish" and "shutdown" callbacks assigned to the application.
  336. *
  337. * @param \Symfony\Component\HttpFoundation\Request $request
  338. * @param \Symfony\Component\HttpFoundation\Response $response
  339. * @return void
  340. * @static
  341. */
  342. public static function terminate($request, $response){
  343. \Illuminate\Foundation\Application::terminate($request, $response);
  344. }
  345. /**
  346. * Call the "finish" callbacks assigned to the application.
  347. *
  348. * @param \Symfony\Component\HttpFoundation\Request $request
  349. * @param \Symfony\Component\HttpFoundation\Response $response
  350. * @return void
  351. * @static
  352. */
  353. public static function callFinishCallbacks($request, $response){
  354. \Illuminate\Foundation\Application::callFinishCallbacks($request, $response);
  355. }
  356. /**
  357. * Prepare the request by injecting any services.
  358. *
  359. * @param \Illuminate\Http\Request $request
  360. * @return \Illuminate\Http\Request
  361. * @static
  362. */
  363. public static function prepareRequest($request){
  364. return \Illuminate\Foundation\Application::prepareRequest($request);
  365. }
  366. /**
  367. * Prepare the given value as a Response object.
  368. *
  369. * @param mixed $value
  370. * @return \Symfony\Component\HttpFoundation\Response
  371. * @static
  372. */
  373. public static function prepareResponse($value){
  374. return \Illuminate\Foundation\Application::prepareResponse($value);
  375. }
  376. /**
  377. * Determine if the application is ready for responses.
  378. *
  379. * @return bool
  380. * @static
  381. */
  382. public static function readyForResponses(){
  383. return \Illuminate\Foundation\Application::readyForResponses();
  384. }
  385. /**
  386. * Determine if the application is currently down for maintenance.
  387. *
  388. * @return bool
  389. * @static
  390. */
  391. public static function isDownForMaintenance(){
  392. return \Illuminate\Foundation\Application::isDownForMaintenance();
  393. }
  394. /**
  395. * Register a maintenance mode event listener.
  396. *
  397. * @param \Closure $callback
  398. * @return void
  399. * @static
  400. */
  401. public static function down($callback){
  402. \Illuminate\Foundation\Application::down($callback);
  403. }
  404. /**
  405. * Throw an HttpException with the given data.
  406. *
  407. * @param int $code
  408. * @param string $message
  409. * @param array $headers
  410. * @return void
  411. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  412. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  413. * @static
  414. */
  415. public static function abort($code, $message = '', $headers = array()){
  416. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  417. }
  418. /**
  419. * Register a 404 error handler.
  420. *
  421. * @param \Closure $callback
  422. * @return void
  423. * @static
  424. */
  425. public static function missing($callback){
  426. \Illuminate\Foundation\Application::missing($callback);
  427. }
  428. /**
  429. * Register an application error handler.
  430. *
  431. * @param \Closure $callback
  432. * @return void
  433. * @static
  434. */
  435. public static function error($callback){
  436. \Illuminate\Foundation\Application::error($callback);
  437. }
  438. /**
  439. * Register an error handler at the bottom of the stack.
  440. *
  441. * @param \Closure $callback
  442. * @return void
  443. * @static
  444. */
  445. public static function pushError($callback){
  446. \Illuminate\Foundation\Application::pushError($callback);
  447. }
  448. /**
  449. * Register an error handler for fatal errors.
  450. *
  451. * @param \Closure $callback
  452. * @return void
  453. * @static
  454. */
  455. public static function fatal($callback){
  456. \Illuminate\Foundation\Application::fatal($callback);
  457. }
  458. /**
  459. * Get the configuration loader instance.
  460. *
  461. * @return \Illuminate\Config\LoaderInterface
  462. * @static
  463. */
  464. public static function getConfigLoader(){
  465. return \Illuminate\Foundation\Application::getConfigLoader();
  466. }
  467. /**
  468. * Get the environment variables loader instance.
  469. *
  470. * @return \Illuminate\Config\EnvironmentVariablesLoaderInterface
  471. * @static
  472. */
  473. public static function getEnvironmentVariablesLoader(){
  474. return \Illuminate\Foundation\Application::getEnvironmentVariablesLoader();
  475. }
  476. /**
  477. * Get the service provider repository instance.
  478. *
  479. * @return \Illuminate\Foundation\ProviderRepository
  480. * @static
  481. */
  482. public static function getProviderRepository(){
  483. return \Illuminate\Foundation\Application::getProviderRepository();
  484. }
  485. /**
  486. * Get the service providers that have been loaded.
  487. *
  488. * @return array
  489. * @static
  490. */
  491. public static function getLoadedProviders(){
  492. return \Illuminate\Foundation\Application::getLoadedProviders();
  493. }
  494. /**
  495. * Set the application's deferred services.
  496. *
  497. * @param array $services
  498. * @return void
  499. * @static
  500. */
  501. public static function setDeferredServices($services){
  502. \Illuminate\Foundation\Application::setDeferredServices($services);
  503. }
  504. /**
  505. * Determine if the given service is a deferred service.
  506. *
  507. * @param string $service
  508. * @return bool
  509. * @static
  510. */
  511. public static function isDeferredService($service){
  512. return \Illuminate\Foundation\Application::isDeferredService($service);
  513. }
  514. /**
  515. * Get or set the request class for the application.
  516. *
  517. * @param string $class
  518. * @return string
  519. * @static
  520. */
  521. public static function requestClass($class = null){
  522. return \Illuminate\Foundation\Application::requestClass($class);
  523. }
  524. /**
  525. * Set the application request for the console environment.
  526. *
  527. * @return void
  528. * @static
  529. */
  530. public static function setRequestForConsoleEnvironment(){
  531. \Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
  532. }
  533. /**
  534. * Call a method on the default request class.
  535. *
  536. * @param string $method
  537. * @param array $parameters
  538. * @return mixed
  539. * @static
  540. */
  541. public static function onRequest($method, $parameters = array()){
  542. return \Illuminate\Foundation\Application::onRequest($method, $parameters);
  543. }
  544. /**
  545. * Get the current application locale.
  546. *
  547. * @return string
  548. * @static
  549. */
  550. public static function getLocale(){
  551. return \Illuminate\Foundation\Application::getLocale();
  552. }
  553. /**
  554. * Set the current application locale.
  555. *
  556. * @param string $locale
  557. * @return void
  558. * @static
  559. */
  560. public static function setLocale($locale){
  561. \Illuminate\Foundation\Application::setLocale($locale);
  562. }
  563. /**
  564. * Register the core class aliases in the container.
  565. *
  566. * @return void
  567. * @static
  568. */
  569. public static function registerCoreContainerAliases(){
  570. \Illuminate\Foundation\Application::registerCoreContainerAliases();
  571. }
  572. /**
  573. * Determine if the given abstract type has been resolved.
  574. *
  575. * @param string $abstract
  576. * @return bool
  577. * @static
  578. */
  579. public static function resolved($abstract){
  580. //Method inherited from \Illuminate\Container\Container
  581. return \Illuminate\Foundation\Application::resolved($abstract);
  582. }
  583. /**
  584. * Determine if a given string is an alias.
  585. *
  586. * @param string $name
  587. * @return bool
  588. * @static
  589. */
  590. public static function isAlias($name){
  591. //Method inherited from \Illuminate\Container\Container
  592. return \Illuminate\Foundation\Application::isAlias($name);
  593. }
  594. /**
  595. * Register a binding with the container.
  596. *
  597. * @param string|array $abstract
  598. * @param \Closure|string|null $concrete
  599. * @param bool $shared
  600. * @return void
  601. * @static
  602. */
  603. public static function bind($abstract, $concrete = null, $shared = false){
  604. //Method inherited from \Illuminate\Container\Container
  605. \Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  606. }
  607. /**
  608. * Register a binding if it hasn't already been registered.
  609. *
  610. * @param string $abstract
  611. * @param \Closure|string|null $concrete
  612. * @param bool $shared
  613. * @return void
  614. * @static
  615. */
  616. public static function bindIf($abstract, $concrete = null, $shared = false){
  617. //Method inherited from \Illuminate\Container\Container
  618. \Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  619. }
  620. /**
  621. * Register a shared binding in the container.
  622. *
  623. * @param string $abstract
  624. * @param \Closure|string|null $concrete
  625. * @return void
  626. * @static
  627. */
  628. public static function singleton($abstract, $concrete = null){
  629. //Method inherited from \Illuminate\Container\Container
  630. \Illuminate\Foundation\Application::singleton($abstract, $concrete);
  631. }
  632. /**
  633. * Wrap a Closure such that it is shared.
  634. *
  635. * @param \Closure $closure
  636. * @return \Closure
  637. * @static
  638. */
  639. public static function share($closure){
  640. //Method inherited from \Illuminate\Container\Container
  641. return \Illuminate\Foundation\Application::share($closure);
  642. }
  643. /**
  644. * Bind a shared Closure into the container.
  645. *
  646. * @param string $abstract
  647. * @param \Closure $closure
  648. * @return void
  649. * @static
  650. */
  651. public static function bindShared($abstract, $closure){
  652. //Method inherited from \Illuminate\Container\Container
  653. \Illuminate\Foundation\Application::bindShared($abstract, $closure);
  654. }
  655. /**
  656. * Register an existing instance as shared in the container.
  657. *
  658. * @param string $abstract
  659. * @param mixed $instance
  660. * @return void
  661. * @static
  662. */
  663. public static function instance($abstract, $instance){
  664. //Method inherited from \Illuminate\Container\Container
  665. \Illuminate\Foundation\Application::instance($abstract, $instance);
  666. }
  667. /**
  668. * Alias a type to a shorter name.
  669. *
  670. * @param string $abstract
  671. * @param string $alias
  672. * @return void
  673. * @static
  674. */
  675. public static function alias($abstract, $alias){
  676. //Method inherited from \Illuminate\Container\Container
  677. \Illuminate\Foundation\Application::alias($abstract, $alias);
  678. }
  679. /**
  680. * Bind a new callback to an abstract's rebind event.
  681. *
  682. * @param string $abstract
  683. * @param \Closure $callback
  684. * @return mixed
  685. * @static
  686. */
  687. public static function rebinding($abstract, $callback){
  688. //Method inherited from \Illuminate\Container\Container
  689. return \Illuminate\Foundation\Application::rebinding($abstract, $callback);
  690. }
  691. /**
  692. * Refresh an instance on the given target and method.
  693. *
  694. * @param string $abstract
  695. * @param mixed $target
  696. * @param string $method
  697. * @return mixed
  698. * @static
  699. */
  700. public static function refresh($abstract, $target, $method){
  701. //Method inherited from \Illuminate\Container\Container
  702. return \Illuminate\Foundation\Application::refresh($abstract, $target, $method);
  703. }
  704. /**
  705. * Instantiate a concrete instance of the given type.
  706. *
  707. * @param string $concrete
  708. * @param array $parameters
  709. * @return mixed
  710. * @throws BindingResolutionException
  711. * @static
  712. */
  713. public static function build($concrete, $parameters = array()){
  714. //Method inherited from \Illuminate\Container\Container
  715. return \Illuminate\Foundation\Application::build($concrete, $parameters);
  716. }
  717. /**
  718. * Register a new resolving callback.
  719. *
  720. * @param string $abstract
  721. * @param \Closure $callback
  722. * @return void
  723. * @static
  724. */
  725. public static function resolving($abstract, $callback){
  726. //Method inherited from \Illuminate\Container\Container
  727. \Illuminate\Foundation\Application::resolving($abstract, $callback);
  728. }
  729. /**
  730. * Register a new resolving callback for all types.
  731. *
  732. * @param \Closure $callback
  733. * @return void
  734. * @static
  735. */
  736. public static function resolvingAny($callback){
  737. //Method inherited from \Illuminate\Container\Container
  738. \Illuminate\Foundation\Application::resolvingAny($callback);
  739. }
  740. /**
  741. * Determine if a given type is shared.
  742. *
  743. * @param string $abstract
  744. * @return bool
  745. * @static
  746. */
  747. public static function isShared($abstract){
  748. //Method inherited from \Illuminate\Container\Container
  749. return \Illuminate\Foundation\Application::isShared($abstract);
  750. }
  751. /**
  752. * Get the container's bindings.
  753. *
  754. * @return array
  755. * @static
  756. */
  757. public static function getBindings(){
  758. //Method inherited from \Illuminate\Container\Container
  759. return \Illuminate\Foundation\Application::getBindings();
  760. }
  761. /**
  762. * Remove a resolved instance from the instance cache.
  763. *
  764. * @param string $abstract
  765. * @return void
  766. * @static
  767. */
  768. public static function forgetInstance($abstract){
  769. //Method inherited from \Illuminate\Container\Container
  770. \Illuminate\Foundation\Application::forgetInstance($abstract);
  771. }
  772. /**
  773. * Clear all of the instances from the container.
  774. *
  775. * @return void
  776. * @static
  777. */
  778. public static function forgetInstances(){
  779. //Method inherited from \Illuminate\Container\Container
  780. \Illuminate\Foundation\Application::forgetInstances();
  781. }
  782. /**
  783. * Determine if a given offset exists.
  784. *
  785. * @param string $key
  786. * @return bool
  787. * @static
  788. */
  789. public static function offsetExists($key){
  790. //Method inherited from \Illuminate\Container\Container
  791. return \Illuminate\Foundation\Application::offsetExists($key);
  792. }
  793. /**
  794. * Get the value at a given offset.
  795. *
  796. * @param string $key
  797. * @return mixed
  798. * @static
  799. */
  800. public static function offsetGet($key){
  801. //Method inherited from \Illuminate\Container\Container
  802. return \Illuminate\Foundation\Application::offsetGet($key);
  803. }
  804. /**
  805. * Set the value at a given offset.
  806. *
  807. * @param string $key
  808. * @param mixed $value
  809. * @return void
  810. * @static
  811. */
  812. public static function offsetSet($key, $value){
  813. //Method inherited from \Illuminate\Container\Container
  814. \Illuminate\Foundation\Application::offsetSet($key, $value);
  815. }
  816. /**
  817. * Unset the value at a given offset.
  818. *
  819. * @param string $key
  820. * @return void
  821. * @static
  822. */
  823. public static function offsetUnset($key){
  824. //Method inherited from \Illuminate\Container\Container
  825. \Illuminate\Foundation\Application::offsetUnset($key);
  826. }
  827. }
  828. class Artisan extends \Illuminate\Support\Facades\Artisan{
  829. /**
  830. * Create and boot a new Console application.
  831. *
  832. * @param \Illuminate\Foundation\Application $app
  833. * @return \Illuminate\Console\Application
  834. * @static
  835. */
  836. public static function start($app){
  837. return \Illuminate\Console\Application::start($app);
  838. }
  839. /**
  840. * Create a new Console application.
  841. *
  842. * @param \Illuminate\Foundation\Application $app
  843. * @return \Illuminate\Console\Application
  844. * @static
  845. */
  846. public static function make($app){
  847. return \Illuminate\Console\Application::make($app);
  848. }
  849. /**
  850. * Boot the Console application.
  851. *
  852. * @return $this
  853. * @static
  854. */
  855. public static function boot(){
  856. return \Illuminate\Console\Application::boot();
  857. }
  858. /**
  859. * Run an Artisan console command by name.
  860. *
  861. * @param string $command
  862. * @param array $parameters
  863. * @param \Symfony\Component\Console\Output\OutputInterface $output
  864. * @return void
  865. * @static
  866. */
  867. public static function call($command, $parameters = array(), $output = null){
  868. \Illuminate\Console\Application::call($command, $parameters, $output);
  869. }
  870. /**
  871. * Add a command to the console.
  872. *
  873. * @param \Symfony\Component\Console\Command\Command $command
  874. * @return \Symfony\Component\Console\Command\Command
  875. * @static
  876. */
  877. public static function add($command){
  878. return \Illuminate\Console\Application::add($command);
  879. }
  880. /**
  881. * Add a command, resolving through the application.
  882. *
  883. * @param string $command
  884. * @return \Symfony\Component\Console\Command\Command
  885. * @static
  886. */
  887. public static function resolve($command){
  888. return \Illuminate\Console\Application::resolve($command);
  889. }
  890. /**
  891. * Resolve an array of commands through the application.
  892. *
  893. * @param array|mixed $commands
  894. * @return void
  895. * @static
  896. */
  897. public static function resolveCommands($commands){
  898. \Illuminate\Console\Application::resolveCommands($commands);
  899. }
  900. /**
  901. * Render the given exception.
  902. *
  903. * @param \Exception $e
  904. * @param \Symfony\Component\Console\Output\OutputInterface $output
  905. * @return void
  906. * @static
  907. */
  908. public static function renderException($e, $output){
  909. \Illuminate\Console\Application::renderException($e, $output);
  910. }
  911. /**
  912. * Set the exception handler instance.
  913. *
  914. * @param \Illuminate\Exception\Handler $handler
  915. * @return $this
  916. * @static
  917. */
  918. public static function setExceptionHandler($handler){
  919. return \Illuminate\Console\Application::setExceptionHandler($handler);
  920. }
  921. /**
  922. * Set the Laravel application instance.
  923. *
  924. * @param \Illuminate\Foundation\Application $laravel
  925. * @return $this
  926. * @static
  927. */
  928. public static function setLaravel($laravel){
  929. return \Illuminate\Console\Application::setLaravel($laravel);
  930. }
  931. /**
  932. * Set whether the Console app should auto-exit when done.
  933. *
  934. * @param bool $boolean
  935. * @return $this
  936. * @static
  937. */
  938. public static function setAutoExit($boolean){
  939. return \Illuminate\Console\Application::setAutoExit($boolean);
  940. }
  941. /**
  942. *
  943. *
  944. * @static
  945. */
  946. public static function setDispatcher($dispatcher){
  947. //Method inherited from \Symfony\Component\Console\Application
  948. return \Illuminate\Console\Application::setDispatcher($dispatcher);
  949. }
  950. /**
  951. * Runs the current application.
  952. *
  953. * @param \Symfony\Component\Console\InputInterface $input An Input instance
  954. * @param \Symfony\Component\Console\OutputInterface $output An Output instance
  955. * @return int 0 if everything went fine, or an error code
  956. * @throws \Exception When doRun returns Exception
  957. * @api
  958. * @static
  959. */
  960. public static function run($input = null, $output = null){
  961. //Method inherited from \Symfony\Component\Console\Application
  962. return \Illuminate\Console\Application::run($input, $output);
  963. }
  964. /**
  965. * Runs the current application.
  966. *
  967. * @param \Symfony\Component\Console\InputInterface $input An Input instance
  968. * @param \Symfony\Component\Console\OutputInterface $output An Output instance
  969. * @return int 0 if everything went fine, or an error code
  970. * @static
  971. */
  972. public static function doRun($input, $output){
  973. //Method inherited from \Symfony\Component\Console\Application
  974. return \Illuminate\Console\Application::doRun($input, $output);
  975. }
  976. /**
  977. * Set a helper set to be used with the command.
  978. *
  979. * @param \Symfony\Component\Console\HelperSet $helperSet The helper set
  980. * @api
  981. * @static
  982. */
  983. public static function setHelperSet($helperSet){
  984. //Method inherited from \Symfony\Component\Console\Application
  985. return \Illuminate\Console\Application::setHelperSet($helperSet);
  986. }
  987. /**
  988. * Get the helper set associated with the command.
  989. *
  990. * @return \Symfony\Component\Console\HelperSet The HelperSet instance associated with this command
  991. * @api
  992. * @static
  993. */
  994. public static function getHelperSet(){
  995. //Method inherited from \Symfony\Component\Console\Application
  996. return \Illuminate\Console\Application::getHelperSet();
  997. }
  998. /**
  999. * Set an input definition set to be used with this application.
  1000. *
  1001. * @param \Symfony\Component\Console\InputDefinition $definition The input definition
  1002. * @api
  1003. * @static
  1004. */
  1005. public static function setDefinition($definition){
  1006. //Method inherited from \Symfony\Component\Console\Application
  1007. return \Illuminate\Console\Application::setDefinition($definition);
  1008. }
  1009. /**
  1010. * Gets the InputDefinition related to this Application.
  1011. *
  1012. * @return \Symfony\Component\Console\InputDefinition The InputDefinition instance
  1013. * @static
  1014. */
  1015. public static function getDefinition(){
  1016. //Method inherited from \Symfony\Component\Console\Application
  1017. return \Illuminate\Console\Application::getDefinition();
  1018. }
  1019. /**
  1020. * Gets the help message.
  1021. *
  1022. * @return string A help message.
  1023. * @static
  1024. */
  1025. public static function getHelp(){
  1026. //Method inherited from \Symfony\Component\Console\Application
  1027. return \Illuminate\Console\Application::getHelp();
  1028. }
  1029. /**
  1030. * Sets whether to catch exceptions or not during commands execution.
  1031. *
  1032. * @param bool $boolean Whether to catch exceptions or not during commands execution
  1033. * @api
  1034. * @static
  1035. */
  1036. public static function setCatchExceptions($boolean){
  1037. //Method inherited from \Symfony\Component\Console\Application
  1038. return \Illuminate\Console\Application::setCatchExceptions($boolean);
  1039. }
  1040. /**
  1041. * Gets the name of the application.
  1042. *
  1043. * @return string The application name
  1044. * @api
  1045. * @static
  1046. */
  1047. public static function getName(){
  1048. //Method inherited from \Symfony\Component\Console\Application
  1049. return \Illuminate\Console\Application::getName();
  1050. }
  1051. /**
  1052. * Sets the application name.
  1053. *
  1054. * @param string $name The application name
  1055. * @api
  1056. * @static
  1057. */
  1058. public static function setName($name){
  1059. //Method inherited from \Symfony\Component\Console\Application
  1060. return \Illuminate\Console\Application::setName($name);
  1061. }
  1062. /**
  1063. * Gets the application version.
  1064. *
  1065. * @return string The application version
  1066. * @api
  1067. * @static
  1068. */
  1069. public static function getVersion(){
  1070. //Method inherited from \Symfony\Component\Console\Application
  1071. return \Illuminate\Console\Application::getVersion();
  1072. }
  1073. /**
  1074. * Sets the application version.
  1075. *
  1076. * @param string $version The application version
  1077. * @api
  1078. * @static
  1079. */
  1080. public static function setVersion($version){
  1081. //Method inherited from \Symfony\Component\Console\Application
  1082. return \Illuminate\Console\Application::setVersion($version);
  1083. }
  1084. /**
  1085. * Returns the long version of the application.
  1086. *
  1087. * @return string The long application version
  1088. * @api
  1089. * @static
  1090. */
  1091. public static function getLongVersion(){
  1092. //Method inherited from \Symfony\Component\Console\Application
  1093. return \Illuminate\Console\Application::getLongVersion();
  1094. }
  1095. /**
  1096. * Registers a new command.
  1097. *
  1098. * @param string $name The command name
  1099. * @return \Symfony\Component\Console\Command The newly created command
  1100. * @api
  1101. * @static
  1102. */
  1103. public static function register($name){
  1104. //Method inherited from \Symfony\Component\Console\Application
  1105. return \Illuminate\Console\Application::register($name);
  1106. }
  1107. /**
  1108. * Adds an array of command objects.
  1109. *
  1110. * @param \Symfony\Component\Console\Command[] $commands An array of commands
  1111. * @api
  1112. * @static
  1113. */
  1114. public static function addCommands($commands){
  1115. //Method inherited from \Symfony\Component\Console\Application
  1116. return \Illuminate\Console\Application::addCommands($commands);
  1117. }
  1118. /**
  1119. * Returns a registered command by name or alias.
  1120. *
  1121. * @param string $name The command name or alias
  1122. * @return \Symfony\Component\Console\Command A Command object
  1123. * @throws \InvalidArgumentException When command name given does not exist
  1124. * @api
  1125. * @static
  1126. */
  1127. public static function get($name){
  1128. //Method inherited from \Symfony\Component\Console\Application
  1129. return \Illuminate\Console\Application::get($name);
  1130. }
  1131. /**
  1132. * Returns true if the command exists, false otherwise.
  1133. *
  1134. * @param string $name The command name or alias
  1135. * @return bool true if the command exists, false otherwise
  1136. * @api
  1137. * @static
  1138. */
  1139. public static function has($name){
  1140. //Method inherited from \Symfony\Component\Console\Application
  1141. return \Illuminate\Console\Application::has($name);
  1142. }
  1143. /**
  1144. * Returns an array of all unique namespaces used by currently registered commands.
  1145. *
  1146. * It does not returns the global namespace which always exists.
  1147. *
  1148. * @return array An array of namespaces
  1149. * @static
  1150. */
  1151. public static function getNamespaces(){
  1152. //Method inherited from \Symfony\Component\Console\Application
  1153. return \Illuminate\Console\Application::getNamespaces();
  1154. }
  1155. /**
  1156. * Finds a registered namespace by a name or an abbreviation.
  1157. *
  1158. * @param string $namespace A namespace or abbreviation to search for
  1159. * @return string A registered namespace
  1160. * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
  1161. * @static
  1162. */
  1163. public static function findNamespace($namespace){
  1164. //Method inherited from \Symfony\Component\Console\Application
  1165. return \Illuminate\Console\Application::findNamespace($namespace);
  1166. }
  1167. /**
  1168. * Finds a command by name or alias.
  1169. *
  1170. * Contrary to get, this command tries to find the best
  1171. * match if you give it an abbreviation of a name or alias.
  1172. *
  1173. * @param string $name A command name or a command alias
  1174. * @return \Symfony\Component\Console\Command A Command instance
  1175. * @throws \InvalidArgumentException When command name is incorrect or ambiguous
  1176. * @api
  1177. * @static
  1178. */
  1179. public static function find($name){
  1180. //Method inherited from \Symfony\Component\Console\Application
  1181. return \Illuminate\Console\Application::find($name);
  1182. }
  1183. /**
  1184. * Gets the commands (registered in the given namespace if provided).
  1185. *
  1186. * The array keys are the full names and the values the command instances.
  1187. *
  1188. * @param string $namespace A namespace name
  1189. * @return \Symfony\Component\Console\Command[] An array of Command instances
  1190. * @api
  1191. * @static
  1192. */
  1193. public static function all($namespace = null){
  1194. //Method inherited from \Symfony\Component\Console\Application
  1195. return \Illuminate\Console\Application::all($namespace);
  1196. }
  1197. /**
  1198. * Returns an array of possible abbreviations given a set of names.
  1199. *
  1200. * @param array $names An array of names
  1201. * @return array An array of abbreviations
  1202. * @static
  1203. */
  1204. public static function getAbbreviations($names){
  1205. //Method inherited from \Symfony\Component\Console\Application
  1206. return \Illuminate\Console\Application::getAbbreviations($names);
  1207. }
  1208. /**
  1209. * Returns a text representation of the Application.
  1210. *
  1211. * @param string $namespace An optional namespace name
  1212. * @param bool $raw Whether to return raw command list
  1213. * @return string A string representing the Application
  1214. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1215. * @static
  1216. */
  1217. public static function asText($namespace = null, $raw = false){
  1218. //Method inherited from \Symfony\Component\Console\Application
  1219. return \Illuminate\Console\Application::asText($namespace, $raw);
  1220. }
  1221. /**
  1222. * Returns an XML representation of the Application.
  1223. *
  1224. * @param string $namespace An optional namespace name
  1225. * @param bool $asDom Whether to return a DOM or an XML string
  1226. * @return string|\DOMDocument An XML string representing the Application
  1227. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  1228. * @static
  1229. */
  1230. public static function asXml($namespace = null, $asDom = false){
  1231. //Method inherited from \Symfony\Component\Console\Application
  1232. return \Illuminate\Console\Application::asXml($namespace, $asDom);
  1233. }
  1234. /**
  1235. * Tries to figure out the terminal dimensions based on the current environment.
  1236. *
  1237. * @return array Array containing width and height
  1238. * @static
  1239. */
  1240. public static function getTerminalDimensions(){
  1241. //Method inherited from \Symfony\Component\Console\Application
  1242. return \Illuminate\Console\Application::getTerminalDimensions();
  1243. }
  1244. /**
  1245. * Sets terminal dimensions.
  1246. *
  1247. * Can be useful to force terminal dimensions for functional tests.
  1248. *
  1249. * @param int $width The width
  1250. * @param int $height The height
  1251. * @return \Symfony\Component\Console\Application The current application
  1252. * @static
  1253. */
  1254. public static function setTerminalDimensions($width, $height){
  1255. //Method inherited from \Symfony\Component\Console\Application
  1256. return \Illuminate\Console\Application::setTerminalDimensions($width, $height);
  1257. }
  1258. /**
  1259. * Returns the namespace part of the command name.
  1260. *
  1261. * This method is not part of public API and should not be used directly.
  1262. *
  1263. * @param string $name The full name of the command
  1264. * @param string $limit The maximum number of parts of the namespace
  1265. * @return string The namespace of the command
  1266. * @static
  1267. */
  1268. public static function extractNamespace($name, $limit = null){
  1269. //Method inherited from \Symfony\Component\Console\Application
  1270. return \Illuminate\Console\Application::extractNamespace($name, $limit);
  1271. }
  1272. /**
  1273. * Sets the default Command name.
  1274. *
  1275. * @param string $commandName The Command name
  1276. * @static
  1277. */
  1278. public static function setDefaultCommand($commandName){
  1279. //Method inherited from \Symfony\Component\Console\Application
  1280. return \Illuminate\Console\Application::setDefaultCommand($commandName);
  1281. }
  1282. }
  1283. class Auth extends \Illuminate\Support\Facades\Auth{
  1284. /**
  1285. * Create an instance of the database driver.
  1286. *
  1287. * @return \Illuminate\Auth\Guard
  1288. * @static
  1289. */
  1290. public static function createDatabaseDriver(){
  1291. return \Illuminate\Auth\AuthManager::createDatabaseDriver();
  1292. }
  1293. /**
  1294. * Create an instance of the Eloquent driver.
  1295. *
  1296. * @return \Illuminate\Auth\Guard
  1297. * @static
  1298. */
  1299. public static function createEloquentDriver(){
  1300. return \Illuminate\Auth\AuthManager::createEloquentDriver();
  1301. }
  1302. /**
  1303. * Get the default authentication driver name.
  1304. *
  1305. * @return string
  1306. * @static
  1307. */
  1308. public static function getDefaultDriver(){
  1309. return \Illuminate\Auth\AuthManager::getDefaultDriver();
  1310. }
  1311. /**
  1312. * Set the default authentication driver name.
  1313. *
  1314. * @param string $name
  1315. * @return void
  1316. * @static
  1317. */
  1318. public static function setDefaultDriver($name){
  1319. \Illuminate\Auth\AuthManager::setDefaultDriver($name);
  1320. }
  1321. /**
  1322. * Get a driver instance.
  1323. *
  1324. * @param string $driver
  1325. * @return mixed
  1326. * @static
  1327. */
  1328. public static function driver($driver = null){
  1329. //Method inherited from \Illuminate\Support\Manager
  1330. return \Illuminate\Auth\AuthManager::driver($driver);
  1331. }
  1332. /**
  1333. * Register a custom driver creator Closure.
  1334. *
  1335. * @param string $driver
  1336. * @param \Closure $callback
  1337. * @return $this
  1338. * @static
  1339. */
  1340. public static function extend($driver, $callback){
  1341. //Method inherited from \Illuminate\Support\Manager
  1342. return \Illuminate\Auth\AuthManager::extend($driver, $callback);
  1343. }
  1344. /**
  1345. * Get all of the created "drivers".
  1346. *
  1347. * @return array
  1348. * @static
  1349. */
  1350. public static function getDrivers(){
  1351. //Method inherited from \Illuminate\Support\Manager
  1352. return \Illuminate\Auth\AuthManager::getDrivers();
  1353. }
  1354. /**
  1355. * Determine if the current user is authenticated.
  1356. *
  1357. * @return bool
  1358. * @static
  1359. */
  1360. public static function check(){
  1361. return \Illuminate\Auth\Guard::check();
  1362. }
  1363. /**
  1364. * Determine if the current user is a guest.
  1365. *
  1366. * @return bool
  1367. * @static
  1368. */
  1369. public static function guest(){
  1370. return \Illuminate\Auth\Guard::guest();
  1371. }

Large files files are truncated, but you can click here to view the full file