PageRenderTime 60ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 2ms

/_ide_helper.php

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

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