PageRenderTime 94ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 1ms

/_ide_helper.php

https://github.com/techieshop/DerpID-Manager
PHP | 10712 lines | 2723 code | 919 blank | 7070 comment | 0 complexity | ebd06d1030e21a41ce66aae11142daea MD5 | raw file
  1. <?php
  2. /**
  3. * An helper file for Laravel 4, to provide autocomplete information to your IDE
  4. *
  5. * Updated for Laravel 4.0.8 (2013-10-07)
  6. * Generated with https://github.com/barryvdh/laravel-ide-helper
  7. *
  8. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  9. */
  10. exit('Only to be used as an helper for your IDE');
  11. class App extends Illuminate\Support\Facades\App{
  12. /**
  13. * Create a new Illuminate application instance.
  14. *
  15. * @param \Illuminate\Http\Request $request
  16. * @return void
  17. * @static
  18. */
  19. public static function __construct($request = null){
  20. Illuminate\Foundation\Application::__construct($request);
  21. }
  22. /**
  23. * Set the application request for the console environment.
  24. *
  25. * @return void
  26. * @static
  27. */
  28. public static function setRequestForConsoleEnvironment(){
  29. Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
  30. }
  31. /**
  32. * Redirect the request if it has a trailing slash.
  33. *
  34. * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
  35. * @static
  36. */
  37. public static function redirectIfTrailingSlash(){
  38. return Illuminate\Foundation\Application::redirectIfTrailingSlash();
  39. }
  40. /**
  41. * Bind the installation paths to the application.
  42. *
  43. * @param array $paths
  44. * @return void
  45. * @static
  46. */
  47. public static function bindInstallPaths($paths){
  48. Illuminate\Foundation\Application::bindInstallPaths($paths);
  49. }
  50. /**
  51. * Get the application bootstrap file.
  52. *
  53. * @return string
  54. * @static
  55. */
  56. public static function getBootstrapFile(){
  57. return Illuminate\Foundation\Application::getBootstrapFile();
  58. }
  59. /**
  60. * Start the exception handling for the request.
  61. *
  62. * @return void
  63. * @static
  64. */
  65. public static function startExceptionHandling(){
  66. Illuminate\Foundation\Application::startExceptionHandling();
  67. }
  68. /**
  69. * Get the current application environment.
  70. *
  71. * @return string
  72. * @static
  73. */
  74. public static function environment(){
  75. return Illuminate\Foundation\Application::environment();
  76. }
  77. /**
  78. * Detect the application's current environment.
  79. *
  80. * @param array|string $environments
  81. * @return string
  82. * @static
  83. */
  84. public static function detectEnvironment($environments){
  85. return Illuminate\Foundation\Application::detectEnvironment($environments);
  86. }
  87. /**
  88. * Determine if we are running in the console.
  89. *
  90. * @return bool
  91. * @static
  92. */
  93. public static function runningInConsole(){
  94. return Illuminate\Foundation\Application::runningInConsole();
  95. }
  96. /**
  97. * Determine if we are running unit tests.
  98. *
  99. * @return bool
  100. * @static
  101. */
  102. public static function runningUnitTests(){
  103. return Illuminate\Foundation\Application::runningUnitTests();
  104. }
  105. /**
  106. * Register a service provider with the application.
  107. *
  108. * @param \Illuminate\Support\ServiceProvider|string $provider
  109. * @param array $options
  110. * @return void
  111. * @static
  112. */
  113. public static function register($provider, $options = array()){
  114. Illuminate\Foundation\Application::register($provider, $options);
  115. }
  116. /**
  117. * Load and boot all of the remaining deferred providers.
  118. *
  119. * @return void
  120. * @static
  121. */
  122. public static function loadDeferredProviders(){
  123. Illuminate\Foundation\Application::loadDeferredProviders();
  124. }
  125. /**
  126. * Resolve the given type from the container.
  127. *
  128. * (Overriding Container::make)
  129. *
  130. * @param string $abstract
  131. * @param array $parameters
  132. * @return mixed
  133. * @static
  134. */
  135. public static function make($abstract, $parameters = array()){
  136. return Illuminate\Foundation\Application::make($abstract, $parameters);
  137. }
  138. /**
  139. * Register a "before" application filter.
  140. *
  141. * @param Closure|string $callback
  142. * @return void
  143. * @static
  144. */
  145. public static function before($callback){
  146. Illuminate\Foundation\Application::before($callback);
  147. }
  148. /**
  149. * Register an "after" application filter.
  150. *
  151. * @param Closure|string $callback
  152. * @return void
  153. * @static
  154. */
  155. public static function after($callback){
  156. Illuminate\Foundation\Application::after($callback);
  157. }
  158. /**
  159. * Register a "close" application filter.
  160. *
  161. * @param Closure|string $callback
  162. * @return void
  163. * @static
  164. */
  165. public static function close($callback){
  166. Illuminate\Foundation\Application::close($callback);
  167. }
  168. /**
  169. * Register a "finish" application filter.
  170. *
  171. * @param Closure|string $callback
  172. * @return void
  173. * @static
  174. */
  175. public static function finish($callback){
  176. Illuminate\Foundation\Application::finish($callback);
  177. }
  178. /**
  179. * Register a "shutdown" callback.
  180. *
  181. * @param callable $callback
  182. * @return void
  183. * @static
  184. */
  185. public static function shutdown($callback = null){
  186. Illuminate\Foundation\Application::shutdown($callback);
  187. }
  188. /**
  189. * Handles the given request and delivers the response.
  190. *
  191. * @return void
  192. * @static
  193. */
  194. public static function run(){
  195. Illuminate\Foundation\Application::run();
  196. }
  197. /**
  198. * Handle the given request and get the response.
  199. *
  200. * @param \Illuminate\Http\Request $request
  201. * @return \Symfony\Component\HttpFoundation\Response
  202. * @static
  203. */
  204. public static function dispatch($request){
  205. return Illuminate\Foundation\Application::dispatch($request);
  206. }
  207. /**
  208. * Handle the given request and get the response.
  209. *
  210. * Provides compatibility with BrowserKit functional testing.
  211. *
  212. * @implements HttpKernelInterface::handle
  213. * @param \Illuminate\Http\Request $request
  214. * @param int $type
  215. * @param bool $catch
  216. * @return \Symfony\Component\HttpFoundation\Response
  217. * @static
  218. */
  219. public static function handle($request, $type = 1, $catch = true){
  220. return Illuminate\Foundation\Application::handle($request, $type, $catch);
  221. }
  222. /**
  223. * Boot the application's service providers.
  224. *
  225. * @return void
  226. * @static
  227. */
  228. public static function boot(){
  229. Illuminate\Foundation\Application::boot();
  230. }
  231. /**
  232. * Register a new boot listener.
  233. *
  234. * @param mixed $callback
  235. * @return void
  236. * @static
  237. */
  238. public static function booting($callback){
  239. Illuminate\Foundation\Application::booting($callback);
  240. }
  241. /**
  242. * Register a new "booted" listener.
  243. *
  244. * @param mixed $callback
  245. * @return void
  246. * @static
  247. */
  248. public static function booted($callback){
  249. Illuminate\Foundation\Application::booted($callback);
  250. }
  251. /**
  252. * Prepare the request by injecting any services.
  253. *
  254. * @param \Illuminate\Http\Request $request
  255. * @return \Illuminate\Http\Request
  256. * @static
  257. */
  258. public static function prepareRequest($request){
  259. return Illuminate\Foundation\Application::prepareRequest($request);
  260. }
  261. /**
  262. * Prepare the given value as a Response object.
  263. *
  264. * @param mixed $value
  265. * @return \Symfony\Component\HttpFoundation\Response
  266. * @static
  267. */
  268. public static function prepareResponse($value){
  269. return Illuminate\Foundation\Application::prepareResponse($value);
  270. }
  271. /**
  272. * Determine if the application is currently down for maintenance.
  273. *
  274. * @return bool
  275. * @static
  276. */
  277. public static function isDownForMaintenance(){
  278. return Illuminate\Foundation\Application::isDownForMaintenance();
  279. }
  280. /**
  281. * Register a maintenance mode event listener.
  282. *
  283. * @param \Closure $callback
  284. * @return void
  285. * @static
  286. */
  287. public static function down($callback){
  288. Illuminate\Foundation\Application::down($callback);
  289. }
  290. /**
  291. * Throw an HttpException with the given data.
  292. *
  293. * @param int $code
  294. * @param string $message
  295. * @param array $headers
  296. * @return void
  297. * @static
  298. */
  299. public static function abort($code, $message = '', $headers = array()){
  300. Illuminate\Foundation\Application::abort($code, $message, $headers);
  301. }
  302. /**
  303. * Register a 404 error handler.
  304. *
  305. * @param Closure $callback
  306. * @return void
  307. * @static
  308. */
  309. public static function missing($callback){
  310. Illuminate\Foundation\Application::missing($callback);
  311. }
  312. /**
  313. * Register an application error handler.
  314. *
  315. * @param \Closure $callback
  316. * @return void
  317. * @static
  318. */
  319. public static function error($callback){
  320. Illuminate\Foundation\Application::error($callback);
  321. }
  322. /**
  323. * Register an error handler at the bottom of the stack.
  324. *
  325. * @param \Closure $callback
  326. * @return void
  327. * @static
  328. */
  329. public static function pushError($callback){
  330. Illuminate\Foundation\Application::pushError($callback);
  331. }
  332. /**
  333. * Register an error handler for fatal errors.
  334. *
  335. * @param Closure $callback
  336. * @return void
  337. * @static
  338. */
  339. public static function fatal($callback){
  340. Illuminate\Foundation\Application::fatal($callback);
  341. }
  342. /**
  343. * Get the configuration loader instance.
  344. *
  345. * @return \Illuminate\Config\LoaderInterface
  346. * @static
  347. */
  348. public static function getConfigLoader(){
  349. return Illuminate\Foundation\Application::getConfigLoader();
  350. }
  351. /**
  352. * Get the service provider repository instance.
  353. *
  354. * @return \Illuminate\Foundation\ProviderRepository
  355. * @static
  356. */
  357. public static function getProviderRepository(){
  358. return Illuminate\Foundation\Application::getProviderRepository();
  359. }
  360. /**
  361. * Get the current application locale.
  362. *
  363. * @return string
  364. * @static
  365. */
  366. public static function getLocale(){
  367. return Illuminate\Foundation\Application::getLocale();
  368. }
  369. /**
  370. * Set the current application locale.
  371. *
  372. * @param string $locale
  373. * @return void
  374. * @static
  375. */
  376. public static function setLocale($locale){
  377. Illuminate\Foundation\Application::setLocale($locale);
  378. }
  379. /**
  380. * Get the service providers that have been loaded.
  381. *
  382. * @return array
  383. * @static
  384. */
  385. public static function getLoadedProviders(){
  386. return Illuminate\Foundation\Application::getLoadedProviders();
  387. }
  388. /**
  389. * Set the application's deferred services.
  390. *
  391. * @param array $services
  392. * @return void
  393. * @static
  394. */
  395. public static function setDeferredServices($services){
  396. Illuminate\Foundation\Application::setDeferredServices($services);
  397. }
  398. /**
  399. * Get or set the request class for the application.
  400. *
  401. * @param string $class
  402. * @return string
  403. * @static
  404. */
  405. public static function requestClass($class = null){
  406. return Illuminate\Foundation\Application::requestClass($class);
  407. }
  408. /**
  409. * Call a method on the default request class.
  410. *
  411. * @param string $method
  412. * @param array $parameters
  413. * @return mixed
  414. * @static
  415. */
  416. public static function onRequest($method, $parameters = array()){
  417. return Illuminate\Foundation\Application::onRequest($method, $parameters);
  418. }
  419. /**
  420. * Dynamically access application services.
  421. *
  422. * @param string $key
  423. * @return mixed
  424. * @static
  425. */
  426. public static function __get($key){
  427. return Illuminate\Foundation\Application::__get($key);
  428. }
  429. /**
  430. * Dynamically set application services.
  431. *
  432. * @param string $key
  433. * @param mixed $value
  434. * @return void
  435. * @static
  436. */
  437. public static function __set($key, $value){
  438. Illuminate\Foundation\Application::__set($key, $value);
  439. }
  440. /**
  441. * Determine if the given abstract type has been bound.
  442. *
  443. * @param string $abstract
  444. * @return bool
  445. * @static
  446. */
  447. public static function bound($abstract){
  448. //Method inherited from Illuminate\Container\Container
  449. return Illuminate\Foundation\Application::bound($abstract);
  450. }
  451. /**
  452. * Register a binding with the container.
  453. *
  454. * @param string $abstract
  455. * @param Closure|string|null $concrete
  456. * @param bool $shared
  457. * @return void
  458. * @static
  459. */
  460. public static function bind($abstract, $concrete = null, $shared = false){
  461. //Method inherited from Illuminate\Container\Container
  462. Illuminate\Foundation\Application::bind($abstract, $concrete, $shared);
  463. }
  464. /**
  465. * Register a binding if it hasn't already been registered.
  466. *
  467. * @param string $abstract
  468. * @param Closure|string|null $concrete
  469. * @param bool $shared
  470. * @return bool
  471. * @static
  472. */
  473. public static function bindIf($abstract, $concrete = null, $shared = false){
  474. //Method inherited from Illuminate\Container\Container
  475. return Illuminate\Foundation\Application::bindIf($abstract, $concrete, $shared);
  476. }
  477. /**
  478. * Register a shared binding in the container.
  479. *
  480. * @param string $abstract
  481. * @param Closure|string|null $concrete
  482. * @return void
  483. * @static
  484. */
  485. public static function singleton($abstract, $concrete = null){
  486. //Method inherited from Illuminate\Container\Container
  487. Illuminate\Foundation\Application::singleton($abstract, $concrete);
  488. }
  489. /**
  490. * Wrap a Closure such that it is shared.
  491. *
  492. * @param Closure $closure
  493. * @return Closure
  494. * @static
  495. */
  496. public static function share($closure){
  497. //Method inherited from Illuminate\Container\Container
  498. return Illuminate\Foundation\Application::share($closure);
  499. }
  500. /**
  501. * "Extend" an abstract type in the container.
  502. *
  503. * @param string $abstract
  504. * @param Closure $closure
  505. * @return void
  506. * @static
  507. */
  508. public static function extend($abstract, $closure){
  509. //Method inherited from Illuminate\Container\Container
  510. Illuminate\Foundation\Application::extend($abstract, $closure);
  511. }
  512. /**
  513. * Register an existing instance as shared in the container.
  514. *
  515. * @param string $abstract
  516. * @param mixed $instance
  517. * @return void
  518. * @static
  519. */
  520. public static function instance($abstract, $instance){
  521. //Method inherited from Illuminate\Container\Container
  522. Illuminate\Foundation\Application::instance($abstract, $instance);
  523. }
  524. /**
  525. * Alias a type to a shorter name.
  526. *
  527. * @param string $abstract
  528. * @param string $alias
  529. * @return void
  530. * @static
  531. */
  532. public static function alias($abstract, $alias){
  533. //Method inherited from Illuminate\Container\Container
  534. Illuminate\Foundation\Application::alias($abstract, $alias);
  535. }
  536. /**
  537. * Instantiate a concrete instance of the given type.
  538. *
  539. * @param string $concrete
  540. * @param array $parameters
  541. * @return mixed
  542. * @static
  543. */
  544. public static function build($concrete, $parameters = array()){
  545. //Method inherited from Illuminate\Container\Container
  546. return Illuminate\Foundation\Application::build($concrete, $parameters);
  547. }
  548. /**
  549. * Register a new resolving callback.
  550. *
  551. * @param Closure $callback
  552. * @return void
  553. * @static
  554. */
  555. public static function resolving($callback){
  556. //Method inherited from Illuminate\Container\Container
  557. Illuminate\Foundation\Application::resolving($callback);
  558. }
  559. /**
  560. * Get the container's bindings.
  561. *
  562. * @return array
  563. * @static
  564. */
  565. public static function getBindings(){
  566. //Method inherited from Illuminate\Container\Container
  567. return Illuminate\Foundation\Application::getBindings();
  568. }
  569. /**
  570. * Determine if a given offset exists.
  571. *
  572. * @param string $key
  573. * @return bool
  574. * @static
  575. */
  576. public static function offsetExists($key){
  577. //Method inherited from Illuminate\Container\Container
  578. return Illuminate\Foundation\Application::offsetExists($key);
  579. }
  580. /**
  581. * Get the value at a given offset.
  582. *
  583. * @param string $key
  584. * @return mixed
  585. * @static
  586. */
  587. public static function offsetGet($key){
  588. //Method inherited from Illuminate\Container\Container
  589. return Illuminate\Foundation\Application::offsetGet($key);
  590. }
  591. /**
  592. * Set the value at a given offset.
  593. *
  594. * @param string $key
  595. * @param mixed $value
  596. * @return void
  597. * @static
  598. */
  599. public static function offsetSet($key, $value){
  600. //Method inherited from Illuminate\Container\Container
  601. Illuminate\Foundation\Application::offsetSet($key, $value);
  602. }
  603. /**
  604. * Unset the value at a given offset.
  605. *
  606. * @param string $key
  607. * @return void
  608. * @static
  609. */
  610. public static function offsetUnset($key){
  611. //Method inherited from Illuminate\Container\Container
  612. Illuminate\Foundation\Application::offsetUnset($key);
  613. }
  614. }
  615. class Artisan extends Illuminate\Support\Facades\Artisan{
  616. /**
  617. * Start a new Console application.
  618. *
  619. * @param \Illuminate\Foundation\Application $app
  620. * @return \Illuminate\Console\Application
  621. * @static
  622. */
  623. public static function start($app){
  624. return Illuminate\Console\Application::start($app);
  625. }
  626. /**
  627. * Add a command to the console.
  628. *
  629. * @param \Symfony\Component\Console\Command\Command $command
  630. * @return \Symfony\Component\Console\Command\Command
  631. * @static
  632. */
  633. public static function add($command){
  634. return Illuminate\Console\Application::add($command);
  635. }
  636. /**
  637. * Add a command, resolving through the application.
  638. *
  639. * @param string $command
  640. * @return \Symfony\Component\Console\Command\Command
  641. * @static
  642. */
  643. public static function resolve($command){
  644. return Illuminate\Console\Application::resolve($command);
  645. }
  646. /**
  647. * Resolve an array of commands through the application.
  648. *
  649. * @param array|dynamic $commands
  650. * @return void
  651. * @static
  652. */
  653. public static function resolveCommands($commands){
  654. Illuminate\Console\Application::resolveCommands($commands);
  655. }
  656. /**
  657. * Render the given exception.
  658. *
  659. * @param \Exception $e
  660. * @param \Symfony\Component\Console\Output\OutputInterface $output
  661. * @return void
  662. * @static
  663. */
  664. public static function renderException($e, $output){
  665. Illuminate\Console\Application::renderException($e, $output);
  666. }
  667. /**
  668. * Set the exception handler instance.
  669. *
  670. * @param \Illuminate\Exception\Handler $handler
  671. * @return void
  672. * @static
  673. */
  674. public static function setExceptionHandler($handler){
  675. Illuminate\Console\Application::setExceptionHandler($handler);
  676. }
  677. /**
  678. * Set the Laravel application instance.
  679. *
  680. * @param \Illuminate\Foundation\Application $laravel
  681. * @return void
  682. * @static
  683. */
  684. public static function setLaravel($laravel){
  685. Illuminate\Console\Application::setLaravel($laravel);
  686. }
  687. /**
  688. * Constructor.
  689. *
  690. * @param string $name The name of the application
  691. * @param string $version The version of the application
  692. * @api
  693. * @static
  694. */
  695. public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
  696. //Method inherited from Symfony\Component\Console\Application
  697. Illuminate\Console\Application::__construct($name, $version);
  698. }
  699. /**
  700. *
  701. *
  702. * @static
  703. */
  704. public static function setDispatcher($dispatcher){
  705. //Method inherited from Symfony\Component\Console\Application
  706. Illuminate\Console\Application::setDispatcher($dispatcher);
  707. }
  708. /**
  709. * Runs the current application.
  710. *
  711. * @param InputInterface $input An Input instance
  712. * @param OutputInterface $output An Output instance
  713. * @return integer 0 if everything went fine, or an error code
  714. * @throws \Exception When doRun returns Exception
  715. * @api
  716. * @static
  717. */
  718. public static function run($input = null, $output = null){
  719. //Method inherited from Symfony\Component\Console\Application
  720. return Illuminate\Console\Application::run($input, $output);
  721. }
  722. /**
  723. * Runs the current application.
  724. *
  725. * @param InputInterface $input An Input instance
  726. * @param OutputInterface $output An Output instance
  727. * @return integer 0 if everything went fine, or an error code
  728. * @static
  729. */
  730. public static function doRun($input, $output){
  731. //Method inherited from Symfony\Component\Console\Application
  732. return Illuminate\Console\Application::doRun($input, $output);
  733. }
  734. /**
  735. * Set a helper set to be used with the command.
  736. *
  737. * @param HelperSet $helperSet The helper set
  738. * @api
  739. * @static
  740. */
  741. public static function setHelperSet($helperSet){
  742. //Method inherited from Symfony\Component\Console\Application
  743. Illuminate\Console\Application::setHelperSet($helperSet);
  744. }
  745. /**
  746. * Get the helper set associated with the command.
  747. *
  748. * @return HelperSet The HelperSet instance associated with this command
  749. * @api
  750. * @static
  751. */
  752. public static function getHelperSet(){
  753. //Method inherited from Symfony\Component\Console\Application
  754. return Illuminate\Console\Application::getHelperSet();
  755. }
  756. /**
  757. * Set an input definition set to be used with this application
  758. *
  759. * @param InputDefinition $definition The input definition
  760. * @api
  761. * @static
  762. */
  763. public static function setDefinition($definition){
  764. //Method inherited from Symfony\Component\Console\Application
  765. Illuminate\Console\Application::setDefinition($definition);
  766. }
  767. /**
  768. * Gets the InputDefinition related to this Application.
  769. *
  770. * @return InputDefinition The InputDefinition instance
  771. * @static
  772. */
  773. public static function getDefinition(){
  774. //Method inherited from Symfony\Component\Console\Application
  775. return Illuminate\Console\Application::getDefinition();
  776. }
  777. /**
  778. * Gets the help message.
  779. *
  780. * @return string A help message.
  781. * @static
  782. */
  783. public static function getHelp(){
  784. //Method inherited from Symfony\Component\Console\Application
  785. return Illuminate\Console\Application::getHelp();
  786. }
  787. /**
  788. * Sets whether to catch exceptions or not during commands execution.
  789. *
  790. * @param Boolean $boolean Whether to catch exceptions or not during commands execution
  791. * @api
  792. * @static
  793. */
  794. public static function setCatchExceptions($boolean){
  795. //Method inherited from Symfony\Component\Console\Application
  796. Illuminate\Console\Application::setCatchExceptions($boolean);
  797. }
  798. /**
  799. * Sets whether to automatically exit after a command execution or not.
  800. *
  801. * @param Boolean $boolean Whether to automatically exit after a command execution or not
  802. * @api
  803. * @static
  804. */
  805. public static function setAutoExit($boolean){
  806. //Method inherited from Symfony\Component\Console\Application
  807. Illuminate\Console\Application::setAutoExit($boolean);
  808. }
  809. /**
  810. * Gets the name of the application.
  811. *
  812. * @return string The application name
  813. * @api
  814. * @static
  815. */
  816. public static function getName(){
  817. //Method inherited from Symfony\Component\Console\Application
  818. return Illuminate\Console\Application::getName();
  819. }
  820. /**
  821. * Sets the application name.
  822. *
  823. * @param string $name The application name
  824. * @api
  825. * @static
  826. */
  827. public static function setName($name){
  828. //Method inherited from Symfony\Component\Console\Application
  829. Illuminate\Console\Application::setName($name);
  830. }
  831. /**
  832. * Gets the application version.
  833. *
  834. * @return string The application version
  835. * @api
  836. * @static
  837. */
  838. public static function getVersion(){
  839. //Method inherited from Symfony\Component\Console\Application
  840. return Illuminate\Console\Application::getVersion();
  841. }
  842. /**
  843. * Sets the application version.
  844. *
  845. * @param string $version The application version
  846. * @api
  847. * @static
  848. */
  849. public static function setVersion($version){
  850. //Method inherited from Symfony\Component\Console\Application
  851. Illuminate\Console\Application::setVersion($version);
  852. }
  853. /**
  854. * Returns the long version of the application.
  855. *
  856. * @return string The long application version
  857. * @api
  858. * @static
  859. */
  860. public static function getLongVersion(){
  861. //Method inherited from Symfony\Component\Console\Application
  862. return Illuminate\Console\Application::getLongVersion();
  863. }
  864. /**
  865. * Registers a new command.
  866. *
  867. * @param string $name The command name
  868. * @return Command The newly created command
  869. * @api
  870. * @static
  871. */
  872. public static function register($name){
  873. //Method inherited from Symfony\Component\Console\Application
  874. return Illuminate\Console\Application::register($name);
  875. }
  876. /**
  877. * Adds an array of command objects.
  878. *
  879. * @param Command[] $commands An array of commands
  880. * @api
  881. * @static
  882. */
  883. public static function addCommands($commands){
  884. //Method inherited from Symfony\Component\Console\Application
  885. Illuminate\Console\Application::addCommands($commands);
  886. }
  887. /**
  888. * Returns a registered command by name or alias.
  889. *
  890. * @param string $name The command name or alias
  891. * @return Command A Command object
  892. * @throws \InvalidArgumentException When command name given does not exist
  893. * @api
  894. * @static
  895. */
  896. public static function get($name){
  897. //Method inherited from Symfony\Component\Console\Application
  898. return Illuminate\Console\Application::get($name);
  899. }
  900. /**
  901. * Returns true if the command exists, false otherwise.
  902. *
  903. * @param string $name The command name or alias
  904. * @return Boolean true if the command exists, false otherwise
  905. * @api
  906. * @static
  907. */
  908. public static function has($name){
  909. //Method inherited from Symfony\Component\Console\Application
  910. return Illuminate\Console\Application::has($name);
  911. }
  912. /**
  913. * Returns an array of all unique namespaces used by currently registered commands.
  914. *
  915. * It does not returns the global namespace which always exists.
  916. *
  917. * @return array An array of namespaces
  918. * @static
  919. */
  920. public static function getNamespaces(){
  921. //Method inherited from Symfony\Component\Console\Application
  922. return Illuminate\Console\Application::getNamespaces();
  923. }
  924. /**
  925. * Finds a registered namespace by a name or an abbreviation.
  926. *
  927. * @param string $namespace A namespace or abbreviation to search for
  928. * @return string A registered namespace
  929. * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
  930. * @static
  931. */
  932. public static function findNamespace($namespace){
  933. //Method inherited from Symfony\Component\Console\Application
  934. return Illuminate\Console\Application::findNamespace($namespace);
  935. }
  936. /**
  937. * Finds a command by name or alias.
  938. *
  939. * Contrary to get, this command tries to find the best
  940. * match if you give it an abbreviation of a name or alias.
  941. *
  942. * @param string $name A command name or a command alias
  943. * @return Command A Command instance
  944. * @throws \InvalidArgumentException When command name is incorrect or ambiguous
  945. * @api
  946. * @static
  947. */
  948. public static function find($name){
  949. //Method inherited from Symfony\Component\Console\Application
  950. return Illuminate\Console\Application::find($name);
  951. }
  952. /**
  953. * Gets the commands (registered in the given namespace if provided).
  954. *
  955. * The array keys are the full names and the values the command instances.
  956. *
  957. * @param string $namespace A namespace name
  958. * @return Command[] An array of Command instances
  959. * @api
  960. * @static
  961. */
  962. public static function all($namespace = null){
  963. //Method inherited from Symfony\Component\Console\Application
  964. return Illuminate\Console\Application::all($namespace);
  965. }
  966. /**
  967. * Returns an array of possible abbreviations given a set of names.
  968. *
  969. * @param array $names An array of names
  970. * @return array An array of abbreviations
  971. * @static
  972. */
  973. public static function getAbbreviations($names){
  974. //Method inherited from Symfony\Component\Console\Application
  975. return Illuminate\Console\Application::getAbbreviations($names);
  976. }
  977. /**
  978. * Returns a text representation of the Application.
  979. *
  980. * @param string $namespace An optional namespace name
  981. * @param boolean $raw Whether to return raw command list
  982. * @return string A string representing the Application
  983. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  984. * @static
  985. */
  986. public static function asText($namespace = null, $raw = false){
  987. //Method inherited from Symfony\Component\Console\Application
  988. return Illuminate\Console\Application::asText($namespace, $raw);
  989. }
  990. /**
  991. * Returns an XML representation of the Application.
  992. *
  993. * @param string $namespace An optional namespace name
  994. * @param Boolean $asDom Whether to return a DOM or an XML string
  995. * @return string|\DOMDocument An XML string representing the Application
  996. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  997. * @static
  998. */
  999. public static function asXml($namespace = null, $asDom = false){
  1000. //Method inherited from Symfony\Component\Console\Application
  1001. return Illuminate\Console\Application::asXml($namespace, $asDom);
  1002. }
  1003. /**
  1004. * Tries to figure out the terminal dimensions based on the current environment
  1005. *
  1006. * @return array Array containing width and height
  1007. * @static
  1008. */
  1009. public static function getTerminalDimensions(){
  1010. //Method inherited from Symfony\Component\Console\Application
  1011. return Illuminate\Console\Application::getTerminalDimensions();
  1012. }
  1013. /**
  1014. * Sets terminal dimensions.
  1015. *
  1016. * Can be useful to force terminal dimensions for functional tests.
  1017. *
  1018. * @param integer $width The width
  1019. * @param integer $height The height
  1020. * @return Application The current application
  1021. * @static
  1022. */
  1023. public static function setTerminalDimensions($width, $height){
  1024. //Method inherited from Symfony\Component\Console\Application
  1025. return Illuminate\Console\Application::setTerminalDimensions($width, $height);
  1026. }
  1027. /**
  1028. * Returns the namespace part of the command name.
  1029. *
  1030. * This method is not part of public API and should not be used directly.
  1031. *
  1032. * @param string $name The full name of the command
  1033. * @param string $limit The maximum number of parts of the namespace
  1034. * @return string The namespace of the command
  1035. * @static
  1036. */
  1037. public static function extractNamespace($name, $limit = null){
  1038. //Method inherited from Symfony\Component\Console\Application
  1039. return Illuminate\Console\Application::extractNamespace($name, $limit);
  1040. }
  1041. }
  1042. class Auth extends Illuminate\Support\Facades\Auth{
  1043. /**
  1044. * Create an instance of the database driver.
  1045. *
  1046. * @return \Illuminate\Auth\Guard
  1047. * @static
  1048. */
  1049. public static function createDatabaseDriver(){
  1050. return Illuminate\Auth\AuthManager::createDatabaseDriver();
  1051. }
  1052. /**
  1053. * Create an instance of the Eloquent driver.
  1054. *
  1055. * @return \Illuminate\Auth\Guard
  1056. * @static
  1057. */
  1058. public static function createEloquentDriver(){
  1059. return Illuminate\Auth\AuthManager::createEloquentDriver();
  1060. }
  1061. /**
  1062. * Create a new manager instance.
  1063. *
  1064. * @param \Illuminate\Foundation\Application $app
  1065. * @return void
  1066. * @static
  1067. */
  1068. public static function __construct($app){
  1069. //Method inherited from Illuminate\Support\Manager
  1070. Illuminate\Auth\AuthManager::__construct($app);
  1071. }
  1072. /**
  1073. * Get a driver instance.
  1074. *
  1075. * @param string $driver
  1076. * @return mixed
  1077. * @static
  1078. */
  1079. public static function driver($driver = null){
  1080. //Method inherited from Illuminate\Support\Manager
  1081. return Illuminate\Auth\AuthManager::driver($driver);
  1082. }
  1083. /**
  1084. * Register a custom driver creator Closure.
  1085. *
  1086. * @param string $driver
  1087. * @param Closure $callback
  1088. * @return void
  1089. * @static
  1090. */
  1091. public static function extend($driver, $callback){
  1092. //Method inherited from Illuminate\Support\Manager
  1093. Illuminate\Auth\AuthManager::extend($driver, $callback);
  1094. }
  1095. /**
  1096. * Get all of the created "drivers".
  1097. *
  1098. * @return array
  1099. * @static
  1100. */
  1101. public static function getDrivers(){
  1102. //Method inherited from Illuminate\Support\Manager
  1103. return Illuminate\Auth\AuthManager::getDrivers();
  1104. }
  1105. /**
  1106. * Dynamically call the default driver instance.
  1107. *
  1108. * @param string $method
  1109. * @param array $parameters
  1110. * @return mixed
  1111. * @static
  1112. */
  1113. public static function __call($method, $parameters){
  1114. //Method inherited from Illuminate\Support\Manager
  1115. return Illuminate\Auth\AuthManager::__call($method, $parameters);
  1116. }
  1117. /**
  1118. * Determine if the current user is authenticated.
  1119. *
  1120. * @return bool
  1121. * @static
  1122. */
  1123. public static function check(){
  1124. return Illuminate\Auth\Guard::check();
  1125. }
  1126. /**
  1127. * Determine if the current user is a guest.
  1128. *
  1129. * @return bool
  1130. * @static
  1131. */
  1132. public static function guest(){
  1133. return Illuminate\Auth\Guard::guest();
  1134. }
  1135. /**
  1136. * Get the currently authenticated user.
  1137. *
  1138. * @return \Illuminate\Auth\UserInterface|null
  1139. * @static
  1140. */
  1141. public static function user(){
  1142. return Illuminate\Auth\Guard::user();
  1143. }
  1144. /**
  1145. * Log a user into the application without sessions or cookies.
  1146. *
  1147. * @param array $credentials
  1148. * @return bool
  1149. * @static
  1150. */
  1151. public static function once($credentials = array()){
  1152. return Illuminate\Auth\Guard::once($credentials);
  1153. }
  1154. /**
  1155. * Validate a user's credentials.
  1156. *
  1157. * @param array $credentials
  1158. * @return bool
  1159. * @static
  1160. */
  1161. public static function validate($credentials = array()){
  1162. return Illuminate\Auth\Guard::validate($credentials);
  1163. }
  1164. /**
  1165. * Attempt to authenticate using HTTP Basic Auth.
  1166. *
  1167. * @param string $field
  1168. * @param \Symfony\Component\HttpFoundation\Request $request
  1169. * @return \Symfony\Component\HttpFoundation\Response|null
  1170. * @static
  1171. */
  1172. public static function basic($field = 'email', $request = null){
  1173. return Illuminate\Auth\Guard::basic($field, $request);
  1174. }
  1175. /**
  1176. * Perform a stateless HTTP Basic login attempt.
  1177. *
  1178. * @param string $field
  1179. * @param \Symfony\Component\HttpFoundation\Request $request
  1180. * @return \Symfony\Component\HttpFoundation\Response|null
  1181. * @static
  1182. */
  1183. public static function onceBasic($field = 'email', $request = null){
  1184. return Illuminate\Auth\Guard::onceBasic($field, $request);
  1185. }
  1186. /**
  1187. * Attempt to authenticate a user using the given credentials.
  1188. *
  1189. * @param array $credentials
  1190. * @param bool $remember
  1191. * @param bool $login
  1192. * @return bool
  1193. * @static
  1194. */
  1195. public static function attempt($credentials = array(), $remember = false, $login = true){
  1196. return Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
  1197. }
  1198. /**
  1199. * Register an authentication attempt event listener.
  1200. *
  1201. * @param mixed $callback
  1202. * @return void
  1203. * @static
  1204. */
  1205. public static function attempting($callback){
  1206. Illuminate\Auth\Guard::attempting($callback);
  1207. }
  1208. /**
  1209. * Log a user into the application.
  1210. *
  1211. * @param \Illuminate\Auth\UserInterface $user
  1212. * @param bool $remember
  1213. * @return void
  1214. * @static
  1215. */
  1216. public static function login($user, $remember = false){
  1217. Illuminate\Auth\Guard::login($user, $remember);
  1218. }
  1219. /**
  1220. * Log the given user ID into the application.
  1221. *
  1222. * @param mixed $id
  1223. * @param bool $remember
  1224. * @return \Illuminate\Auth\UserInterface
  1225. * @static
  1226. */
  1227. public static function loginUsingId($id, $remember = false){
  1228. return Illuminate\Auth\Guard::loginUsingId($id, $remember);
  1229. }
  1230. /**
  1231. * Log the given user ID into the application without sessions or cookies.
  1232. *
  1233. * @param mixed $id
  1234. * @return bool
  1235. * @static
  1236. */
  1237. public static function onceUsingId($id){
  1238. return Illuminate\Auth\Guard::onceUsingId($id);
  1239. }
  1240. /**
  1241. * Log the user out of the application.
  1242. *
  1243. * @return void
  1244. * @static
  1245. */
  1246. public static function logout(){
  1247. Illuminate\Auth\Guard::logout();
  1248. }
  1249. /**
  1250. * Get the cookies queued by the guard.
  1251. *
  1252. * @return array
  1253. * @static
  1254. */
  1255. public static function getQueuedCookies(){
  1256. return Illuminate\Auth\Guard::getQueuedCookies();
  1257. }
  1258. /**
  1259. * Get the cookie creator instance used by the guard.
  1260. *
  1261. * @return \Illuminate\Cookie\CookieJar
  1262. * @static
  1263. */
  1264. public static function getCookieJar(){
  1265. return Illuminate\Auth\Guard::getCookieJar();
  1266. }
  1267. /**
  1268. * Set the cookie creator instance used by the guard.
  1269. *
  1270. * @param \Illuminate\Cookie\CookieJar $cookie
  1271. * @return void
  1272. * @static
  1273. */
  1274. public static function setCookieJar($cookie){
  1275. Illuminate\Auth\Guard::setCookieJar($cookie);
  1276. }
  1277. /**
  1278. * Get the event dispatcher instance.
  1279. *
  1280. * @return \Illuminate\Events\Dispatcher
  1281. * @static
  1282. */
  1283. public static function getDispatcher(){
  1284. return Illuminate\Auth\Guard::getDispatcher();
  1285. }
  1286. /**
  1287. * Set the event dispatcher instance.
  1288. *
  1289. * @param \Illuminate\Events\Dispatcher
  1290. * @static
  1291. */
  1292. public static function setDispatcher($events){
  1293. Illuminate\Auth\Guard::setDispatcher($events);
  1294. }
  1295. /**
  1296. * Get the session store used by the guard.
  1297. *
  1298. * @return \Illuminate\Session\Store
  1299. * @static
  1300. */
  1301. public static function getSession(){
  1302. return Illuminate\Auth\Guard::getSession();
  1303. }
  1304. /**
  1305. * Get the user provider used by the guard.
  1306. *
  1307. * @return \Illuminate\Auth\UserProviderInterface
  1308. * @static
  1309. */
  1310. public static function getProvider(){
  1311. return Illuminate\Auth\Guard::getProvider();
  1312. }
  1313. /**
  1314. * Set the user provider used by the guard.
  1315. *
  1316. * @param \Illuminate\Auth\UserProviderInterface $provider
  1317. * @return void
  1318. * @static
  1319. */
  1320. public static function setProvider($provider){
  1321. Illuminate\Auth\Guard::setProvider($provider);
  1322. }
  1323. /**
  1324. * Return the currently cached user of the application.
  1325. *
  1326. * @return \Illuminate\Auth\UserInterface|null
  1327. * @static
  1328. */
  1329. public static function getUser(){
  1330. return Illuminate\Auth\Guard::getUser();
  1331. }
  1332. /**
  1333. * Set the current user of the application.
  1334. *
  1335. * @param \Illuminate\Auth\UserInterface $user
  1336. * @return void
  1337. * @static
  1338. */
  1339. public static function setUser($user){
  1340. Illuminate\Auth\Guard::setUser($user);
  1341. }
  1342. /**
  1343. * Get the current request instance.
  1344. *
  1345. * @return \Symfony\Component\HttpFoundation\Request
  1346. * @static
  1347. */
  1348. public static function getRequest(){
  1349. return Illuminate\Auth\Guard::getRequest();
  1350. }
  1351. /**
  1352. * Set the current request instance.
  1353. *
  1354. * @param \Symfony\Component\HttpFoundation\Request
  1355. * @return \Illuminate\Auth\Guard
  1356. * @static
  1357. */
  1358. public static function setRequest($request){
  1359. return Illuminate\Auth\Guard::setRequest($request);
  1360. }
  1361. /**
  1362. * Get a unique identifier for the auth session value.
  1363. *
  1364. * @return string
  1365. * @static
  1366. */
  1367. public static function getName(){
  1368. return Illuminate\Auth\Guard::getName();
  1369. }
  1370. /**
  1371. * Get the name of the cookie used to store the "recaller".
  1372. *
  1373. * @return string
  1374. * @static
  1375. */
  1376. public static function getRecallerName(){
  1377. return Illuminate\Auth\Guard::getRecallerName();
  1378. }
  1379. }
  1380. class Blade extends Illuminate\Support\Facades\Blade{
  1381. /**
  1382. * Compile the view at the given path.
  1383. *
  1384. * @param string $path
  1385. * @return void
  1386. * @static
  1387. */
  1388. public static function compile($path){
  1389. Illuminate\View\Compilers\BladeCompiler::compile($path);
  1390. }
  1391. /**
  1392. * Compile the given Blade template contents.
  1393. *
  1394. * @param string $value
  1395. * @return string
  1396. * @static
  1397. */
  1398. public static function compileString($value){
  1399. return Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1400. }
  1401. /**
  1402. * Register a custom Blade compiler.
  1403. *
  1404. * @param Closure $compiler
  1405. * @return void
  1406. * @static
  1407. */
  1408. public static function extend($compiler){
  1409. Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1410. }
  1411. /**
  1412. * Get the regular expression for a generic Blade function.
  1413. *
  1414. * @param string $function
  1415. * @return string
  1416. * @static
  1417. */
  1418. public static function createMatcher($function){
  1419. return Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
  1420. }
  1421. /**
  1422. * Get the regular expression for a generic Blade function.
  1423. *
  1424. * @param string $function
  1425. * @return string
  1426. * @static
  1427. */
  1428. public static function createOpenMatcher($function){
  1429. return Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
  1430. }
  1431. /**
  1432. * Create a plain Blade matcher.
  1433. *
  1434. * @param string $function
  1435. * @return string
  1436. * @static
  1437. */
  1438. public static function createPlainMatcher($function){
  1439. return Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
  1440. }
  1441. /**
  1442. * Sets the content tags used for the compiler.
  1443. *
  1444. * @param string $openTag
  1445. * @param string $closeTag
  1446. * @param bool $escaped
  1447. * @return void
  1448. * @static
  1449. */
  1450. public static function setContentTags($openTag, $closeTag, $escaped = false){
  1451. Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
  1452. }
  1453. /**
  1454. * Sets the escaped content tags used for the compiler.
  1455. *
  1456. * @param string $openTag
  1457. * @param string $closeTag
  1458. * @return void
  1459. * @static
  1460. */
  1461. public static function setEscapedContentTags($openTag, $closeTag){
  1462. Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
  1463. }
  1464. /**
  1465. * Create a new compiler instance.
  1466. *
  1467. * @param \Illuminate\Filesystem\Filesystem $files
  1468. * @param string $cachePath
  1469. * @return void
  1470. * @static
  1471. */
  1472. public static function __construct($files, $cachePath){
  1473. //Method inherited from Illuminate\View\Compilers\Compiler
  1474. Illuminate\View\Compilers\BladeCompiler::__construct($files, $cachePath);
  1475. }
  1476. /**
  1477. * Get the path to the compiled version of a view.
  1478. *
  1479. * @param string $path
  1480. * @return string
  1481. * @static
  1482. */
  1483. public static function getCompiledPath($path){
  1484. //Method inherited from Illuminate\View\Compilers\Compiler
  1485. return Illuminate\View\Compilers\BladeCompiler::getCompiledPath($path);
  1486. }
  1487. /**
  1488. * Determine if the view at the given path is expired.
  1489. *
  1490. * @param string $path
  1491. * @return bool
  1492. * @static
  1493. */
  1494. public static function isExpired($path){
  1495. //Method inherited from Illuminate\View\Compilers\Compiler
  1496. return Illuminate\View\Compilers\BladeCompiler::isExpired($path);
  1497. }
  1498. }
  1499. class Cache extends Illuminate\Support\Facades\Cache{
  1500. /**
  1501. * Get the cache "prefix" value.
  1502. *
  1503. * @return string
  1504. * @static
  1505. */
  1506. public static function getPrefix(){
  1507. return Illuminate\Cache\CacheManager::getPrefix();
  1508. }
  1509. /**
  1510. * Create a new manager instance.
  1511. *
  1512. * @param \Illuminate\Foundation\Application $app
  1513. * @return void
  1514. * @static
  1515. */
  1516. public static function __construct($app){
  1517. //Method inherited from Illuminate\Support\Manager
  1518. Illuminate\Cache\CacheManager::__construct($app);
  1519. }
  1520. /**
  1521. * Get a driver instance.
  1522. *
  1523. * @param string $driver
  1524. * @return mixed
  1525. * @static
  1526. */
  1527. public static function driver($driver = null){
  1528. //Method inherited from Illuminate\Support\Manager
  1529. return Illuminate\Cache\CacheManager::driver($driver);
  1530. }
  1531. /**
  1532. * Register a custom driver creator Closure.
  1533. *
  1534. * @param string $driver
  1535. * @param Closure $callback
  1536. * @return void
  1537. * @static
  1538. */
  1539. public static function extend($driver, $callback){
  1540. //Method inherited from Illuminate\Support\Manager
  1541. Illuminate\Cache\CacheManager::extend($driver, $callback);
  1542. }
  1543. /**
  1544. * Get all of the created "drivers".
  1545. *
  1546. * @return array
  1547. * @static
  1548. */
  1549. public static function getDrivers(){
  1550. //Method inherited from Illuminate\Support\Manager
  1551. return Illuminate\Cache\CacheManager::getDrivers();
  1552. }
  1553. /**
  1554. * Dynamically call the default driver instance.
  1555. *
  1556. * @param string $method
  1557. * @param array $parameters
  1558. * @return mixed
  1559. * @static
  1560. */
  1561. public static function __call($method, $parameters){
  1562. //Method inherited from Illuminate\Support\Manager
  1563. return Illuminate\Cache\CacheManager::__call($method, $parameters);
  1564. }
  1565. /**
  1566. * Determine if an item exists in the cache.
  1567. *
  1568. * @param string $key
  1569. * @return bool
  1570. * @static
  1571. */
  1572. public static function has($key){
  1573. return Illuminate\Cache\Repository::has($key);
  1574. }
  1575. /**
  1576. * Retrieve an item from the cache by key.
  1577. *
  1578. * @param string $key
  1579. * @param mixed $default
  1580. * @return mixed
  1581. * @static
  1582. */
  1583. public static function get($key, $default = null){
  1584. return Illuminate\Cache\Repository::get($key, $default);
  1585. }
  1586. /**
  1587. * Store an item in the cache if the key does not exist.
  1588. *
  1589. * @param string $key
  1590. * @param mixed $value
  1591. * @param int $minutes
  1592. * @return void
  1593. * @static
  1594. */
  1595. public static function add($key, $value, $minutes){
  1596. Illuminate\Cache\Repository::add($key, $value, $minutes);
  1597. }
  1598. /**
  1599. * Get an item from the cache, or store the default value.
  1600. *
  1601. * @param string $key
  1602. * @param int $minutes
  1603. * @param Closure $callback
  1604. * @return mixed
  1605. * @static
  1606. */
  1607. public static function remember($key, $minutes, $callback){
  1608. return Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  1609. }
  1610. /**
  1611. * Get an item from the cache, or store the default value forever.
  1612. *
  1613. * @param string $key
  1614. * @param Closure $callback
  1615. * @return mixed
  1616. * @static
  1617. */
  1618. public static function sear($key, $callback){
  1619. return Illuminate\Cache\Repository::sear($key, $callback);
  1620. }
  1621. /**
  1622. * Get an item from the cache, or store the default value forever.
  1623. *
  1624. * @param string $key
  1625. * @param Closure $callback
  1626. * @return mixed
  1627. * @static
  1628. */
  1629. public static function rememberForever($key, $callback){
  1630. return Illuminate\Cache\Repository::rememberForever($key, $callback);
  1631. }
  1632. /**
  1633. * Get the default cache time.
  1634. *
  1635. * @return int
  1636. * @static
  1637. */
  1638. public static function getDefaultCacheTime(){
  1639. return Illuminate\Cache\Repository::getDefaultCacheTime();
  1640. }
  1641. /**
  1642. * Set the default cache time in minutes.
  1643. *
  1644. * @param int $minutes
  1645. * @return void
  1646. * @static
  1647. */
  1648. public static function setDefaultCacheTime($minutes){
  1649. Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  1650. }
  1651. /**
  1652. * Get the cache store implementation.
  1653. *
  1654. * @return \Illuminate\Cache\StoreInterface
  1655. * @static
  1656. */
  1657. public static function getStore(){
  1658. return Illuminate\Cache\Repository::getStore();
  1659. }
  1660. /**
  1661. * Determine if a cached value exists.
  1662. *
  1663. * @param string $key
  1664. * @return bool
  1665. * @static
  1666. */
  1667. public static function offsetExists($key){
  1668. return Illuminate\Cache\Repository::offsetExists($key);
  1669. }
  1670. /**
  1671. * Retrieve an item from the cache by key.
  1672. *
  1673. * @param string $key
  1674. * @return mixed
  1675. * @static
  1676. */
  1677. public static function offsetGet($key){
  1678. return Illuminate\Cache\Repository::offsetGet($key);
  1679. }
  1680. /**
  1681. * Store an item in the cache for the default time.
  1682. *
  1683. * @param string $key
  1684. * @param mixed $value
  1685. * @return void
  1686. * @static
  1687. */
  1688. public static function offsetSet($key, $value){
  1689. Illuminate\Cache\Repository::offsetSet($key, $value);
  1690. }
  1691. /**
  1692. * Remove an item from the cache.
  1693. *
  1694. * @param string $key
  1695. * @return void
  1696. * @static
  1697. */
  1698. public static function offsetUnset($key){
  1699. Illuminate\Cache\Repository::offsetUnset($key);
  1700. }
  1701. }
  1702. class ClassLoader extends Illuminate\Support\ClassLoader{
  1703. }
  1704. class Config extends Illuminate\Support\Facades\Config{
  1705. /**
  1706. * Create a new configuration repository.
  1707. *
  1708. * @param \Illuminate\Config\LoaderInterface $loader
  1709. * @param string $environment
  1710. * @return void
  1711. * @static
  1712. */
  1713. public static function __construct($loader, $environment){
  1714. Illuminate\Config\Repository::__construct($loader, $environment);
  1715. }
  1716. /**
  1717. * Determine if the given configuration value exists.
  1718. *
  1719. * @param string $key
  1720. * @return bool
  1721. * @static
  1722. */
  1723. public static function has($key){
  1724. return Illuminate\Config\Repository::has($key);
  1725. }
  1726. /**
  1727. * Determine if a configuration group exists.
  1728. *
  1729. * @param string $key
  1730. * @return bool
  1731. * @static
  1732. */
  1733. public static function hasGroup($key){
  1734. return Illuminate\Config\Repository::hasGroup($key);
  1735. }
  1736. /**
  1737. * Get the specified configuration value.
  1738. *
  1739. * @param string $key
  1740. * @param mixed $default
  1741. * @return mixed
  1742. * @static
  1743. */
  1744. public static function get($key, $default = null){
  1745. return Illuminate\Config\Repository::get($key, $default);
  1746. }
  1747. /**
  1748. * Set a given configuration value.
  1749. *
  1750. * @param string $key
  1751. * @param mixed $value
  1752. * @return void
  1753. * @static
  1754. */
  1755. public static function set($key, $value){
  1756. Illuminate\Config\Repository::set($key, $value);
  1757. }
  1758. /**
  1759. * Register a package for cascading configuration.
  1760. *
  1761. * @param string $package
  1762. * @param string $hint
  1763. * @param string $namespace
  1764. * @return void
  1765. * @static
  1766. */
  1767. public static function package($package, $hint, $namespace = null){
  1768. Illuminate\Config\Repository::package($package, $hint, $namespace);
  1769. }
  1770. /**
  1771. * Register an after load callback for a given namespace.
  1772. *
  1773. * @param string $namespace
  1774. * @param \Closure $callback
  1775. * @return void
  1776. * @static
  1777. */
  1778. public static function afterLoading($namespace, $callback){
  1779. Illuminate\Config\Repository::afterLoading($namespace, $callback);
  1780. }
  1781. /**
  1782. * Add a new namespace to the loader.
  1783. *
  1784. * @param string $namespace
  1785. * @param string $hint
  1786. * @return void
  1787. * @static
  1788. */
  1789. public static function addNamespace($namespace, $hint){
  1790. Illuminate\Config\Repository::addNamespace($namespace, $hint);
  1791. }
  1792. /**
  1793. * Returns all registered namespaces with the config
  1794. * loader.
  1795. *
  1796. * @return array
  1797. * @static
  1798. */
  1799. public static function getNamespaces(){
  1800. return Illuminate\Config\Repository::getNamespaces();
  1801. }
  1802. /**
  1803. * Get the loader implementation.
  1804. *
  1805. * @return \Illuminate\Config\LoaderInterface
  1806. * @static
  1807. */
  1808. public static function getLoader(){
  1809. return Illuminate\Config\Repository::getLoader();
  1810. }
  1811. /**
  1812. * Set the loader implementation.
  1813. *
  1814. * @param \Illuminate\Config\LoaderInterface $loader
  1815. * @return void
  1816. * @static
  1817. */
  1818. public static function setLoader($loader){
  1819. Illuminate\Config\Repository::setLoader($loader);
  1820. }
  1821. /**
  1822. * Get the current configuration environment.
  1823. *
  1824. * @return string
  1825. * @static
  1826. */
  1827. public static function getEnvironment(){
  1828. return Illuminate\Config\Repository::getEnvironment();
  1829. }
  1830. /**
  1831. * Get the after load callback array.
  1832. *
  1833. * @return array
  1834. * @static
  1835. */
  1836. public static function getAfterLoadCallbacks(){
  1837. return Illuminate\Config\Repository::getAfterLoadCallbacks();
  1838. }
  1839. /**
  1840. * Get all of the configuration items.
  1841. *
  1842. * @return array
  1843. * @static
  1844. */
  1845. public static function getItems(){
  1846. return Illuminate\Config\Repository::getItems();
  1847. }
  1848. /**
  1849. * Determine if the given configuration option exists.
  1850. *
  1851. * @param string $key
  1852. * @return bool
  1853. * @static
  1854. */
  1855. public static function offsetExists($key){
  1856. return Illuminate\Config\Repository::offsetExists($key);
  1857. }
  1858. /**
  1859. * Get a configuration option.
  1860. *
  1861. * @param string $key
  1862. * @return mixed
  1863. * @static
  1864. */
  1865. public static function offsetGet($key){
  1866. return Illuminate\Config\Repository::offsetGet($key);
  1867. }
  1868. /**
  1869. * Set a configuration option.
  1870. *
  1871. * @param string $key
  1872. * @param mixed $value
  1873. * @return void
  1874. * @static
  1875. */
  1876. public static function offsetSet($key, $value){
  1877. Illuminate\Config\Repository::offsetSet($key, $value);
  1878. }
  1879. /**
  1880. * Unset a configuration option.
  1881. *
  1882. * @param string $key
  1883. * @return void
  1884. * @static
  1885. */
  1886. public static function offsetUnset($key){
  1887. Illuminate\Config\Repository::offsetUnset($key);
  1888. }
  1889. /**
  1890. * Parse a key into namespace, group, and item.
  1891. *
  1892. * @param string $key
  1893. * @return array
  1894. * @static
  1895. */
  1896. public static function parseKey($key){
  1897. //Method inherited from Illuminate\Support\NamespacedItemResolver
  1898. return Illuminate\Config\Repository::parseKey($key);
  1899. }
  1900. /**
  1901. * Set the parsed value of a key.
  1902. *
  1903. * @param string $key
  1904. * @param array $parsed
  1905. * @return void
  1906. * @static
  1907. */
  1908. public static function setParsedKey($key, $parsed){
  1909. //Method inherited from Illuminate\Support\NamespacedItemResolver
  1910. Illuminate\Config\Repository::setParsedKey($key, $parsed);
  1911. }
  1912. }
  1913. class Controller extends Illuminate\Routing\Controllers\Controller{
  1914. }
  1915. class Cookie extends Illuminate\Support\Facades\Cookie{
  1916. /**
  1917. * Create a new cookie manager instance.
  1918. *
  1919. * @param \Symfony\Component\HttpFoundation\Request $request
  1920. * @param \Illuminate\Encryption\Encrypter $encrypter
  1921. * @return void
  1922. * @static
  1923. */
  1924. public static function __construct($request, $encrypter){
  1925. Illuminate\Cookie\CookieJar::__construct($request, $encrypter);
  1926. }
  1927. /**
  1928. * Determine if a cookie exists and is not null.
  1929. *
  1930. * @param string $key
  1931. * @return bool
  1932. * @static
  1933. */
  1934. public static function has($key){
  1935. return Illuminate\Cookie\CookieJar::has($key);
  1936. }
  1937. /**
  1938. * Get the value of the given cookie.
  1939. *
  1940. * @param string $key
  1941. * @param mixed $default
  1942. * @return mixed
  1943. * @static
  1944. */
  1945. public static function get($key, $default = null){
  1946. return Illuminate\Cookie\CookieJar::get($key, $default);
  1947. }
  1948. /**
  1949. * Create a new cookie instance.
  1950. *
  1951. * @param string $name
  1952. * @param string $value
  1953. * @param int $minutes
  1954. * @param string $path
  1955. * @param string $domain
  1956. * @param bool $secure
  1957. * @param bool $httpOnly
  1958. * @return \Symfony\Component\HttpFoundation\Cookie
  1959. * @static
  1960. */
  1961. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
  1962. return Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  1963. }
  1964. /**
  1965. * Create a cookie that lasts "forever" (five years).
  1966. *
  1967. * @param string $name
  1968. * @param string $value
  1969. * @param string $path
  1970. * @param string $domain
  1971. * @param bool $secure
  1972. * @param bool $httpOnly
  1973. * @return \Symfony\Component\HttpFoundation\Cookie
  1974. * @static
  1975. */
  1976. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
  1977. return Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  1978. }
  1979. /**
  1980. * Expire the given cookie.
  1981. *
  1982. * @param string $name
  1983. * @return \Symfony\Component\HttpFoundation\Cookie
  1984. * @static
  1985. */
  1986. public static function forget($name){
  1987. return Illuminate\Cookie\CookieJar::forget($name);
  1988. }
  1989. /**
  1990. * Set the default path and domain for the jar.
  1991. *
  1992. * @param string $path
  1993. * @param string $domain
  1994. * @return void
  1995. * @static
  1996. */
  1997. public static function setDefaultPathAndDomain($path, $domain){
  1998. Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
  1999. }
  2000. /**
  2001. * Get the request instance.
  2002. *
  2003. * @return \Symfony\Component\HttpFoundation\Request
  2004. * @static
  2005. */
  2006. public static function getRequest(){
  2007. return Illuminate\Cookie\CookieJar::getRequest();
  2008. }
  2009. /**
  2010. * Get the encrypter instance.
  2011. *
  2012. * @return \Illuminate\Encryption\Encrypter
  2013. * @static
  2014. */
  2015. public static function getEncrypter(){
  2016. return Illuminate\Cookie\CookieJar::getEncrypter();
  2017. }
  2018. }
  2019. class Crypt extends Illuminate\Support\Facades\Crypt{
  2020. /**
  2021. * Create a new encrypter instance.
  2022. *
  2023. * @param string $key
  2024. * @return void
  2025. * @static
  2026. */
  2027. public static function __construct($key){
  2028. Illuminate\Encryption\Encrypter::__construct($key);
  2029. }
  2030. /**
  2031. * Encrypt the given value.
  2032. *
  2033. * @param string $value
  2034. * @return string
  2035. * @static
  2036. */
  2037. public static function encrypt($value){
  2038. return Illuminate\Encryption\Encrypter::encrypt($value);
  2039. }
  2040. /**
  2041. * Decrypt the given value.
  2042. *
  2043. * @param string $payload
  2044. * @return string
  2045. * @static
  2046. */
  2047. public static function decrypt($payload){
  2048. return Illuminate\Encryption\Encrypter::decrypt($payload);
  2049. }
  2050. /**
  2051. * Set the encryption key.
  2052. *
  2053. * @param string $key
  2054. * @return void
  2055. * @static
  2056. */
  2057. public static function setKey($key){
  2058. Illuminate\Encryption\Encrypter::setKey($key);
  2059. }
  2060. /**
  2061. * Set the encryption cipher.
  2062. *
  2063. * @param string $cipher
  2064. * @return void
  2065. * @static
  2066. */
  2067. public static function setCipher($cipher){
  2068. Illuminate\Encryption\Encrypter::setCipher($cipher);
  2069. }
  2070. /**
  2071. * Set the encryption mode.
  2072. *
  2073. * @param string $mode
  2074. * @return void
  2075. * @static
  2076. */
  2077. public static function setMode($mode){
  2078. Illuminate\Encryption\Encrypter::setMode($mode);
  2079. }
  2080. }
  2081. class DB extends Illuminate\Support\Facades\DB{
  2082. /**
  2083. * Create a new database manager instance.
  2084. *
  2085. * @param \Illuminate\Foundation\Application $app
  2086. * @param \Illuminate\Database\Connectors\ConnectionFactory $factory
  2087. * @return void
  2088. * @static
  2089. */
  2090. public static function __construct($app, $factory){
  2091. Illuminate\Database\DatabaseManager::__construct($app, $factory);
  2092. }
  2093. /**
  2094. * Get a database connection instance.
  2095. *
  2096. * @param string $name
  2097. * @return \Illuminate\Database\Connection
  2098. * @static
  2099. */
  2100. public static function connection($name = null){
  2101. return Illuminate\Database\DatabaseManager::connection($name);
  2102. }
  2103. /**
  2104. * Reconnect to the given database.
  2105. *
  2106. * @param string $name
  2107. * @return \Illuminate\Database\Connection
  2108. * @static
  2109. */
  2110. public static function reconnect($name = null){
  2111. return Illuminate\Database\DatabaseManager::reconnect($name);
  2112. }
  2113. /**
  2114. * Disconnect from the given database.
  2115. *
  2116. * @param string $name
  2117. * @return void
  2118. * @static
  2119. */
  2120. public static function disconnect($name = null){
  2121. Illuminate\Database\DatabaseManager::disconnect($name);
  2122. }
  2123. /**
  2124. * Get the default connection name.
  2125. *
  2126. * @return string
  2127. * @static
  2128. */
  2129. public static function getDefaultConnection(){
  2130. return Illuminate\Database\DatabaseManager::getDefaultConnection();
  2131. }
  2132. /**
  2133. * Set the default connection name.
  2134. *
  2135. * @param string $name
  2136. * @return void
  2137. * @static
  2138. */
  2139. public static function setDefaultConnection($name){
  2140. Illuminate\Database\DatabaseManager::setDefaultConnection($name);
  2141. }
  2142. /**
  2143. * Register an extension connection resolver.
  2144. *
  2145. * @param string $name
  2146. * @param callable $resolver
  2147. * @return void
  2148. * @static
  2149. */
  2150. public static function extend($name, $resolver){
  2151. Illuminate\Database\DatabaseManager::extend($name, $resolver);
  2152. }
  2153. /**
  2154. * Return all of the created connections.
  2155. *
  2156. * @return array
  2157. * @static
  2158. */
  2159. public static function getConnections(){
  2160. return Illuminate\Database\DatabaseManager::getConnections();
  2161. }
  2162. /**
  2163. * Dynamically pass methods to the default connection.
  2164. *
  2165. * @param string $method
  2166. * @param array $parameters
  2167. * @return mixed
  2168. * @static
  2169. */
  2170. public static function __call($method, $parameters){
  2171. return Illuminate\Database\DatabaseManager::__call($method, $parameters);
  2172. }
  2173. /**
  2174. * Get a schema builder instance for the connection.
  2175. *
  2176. * @return \Illuminate\Database\Schema\MySqlBuilder
  2177. * @static
  2178. */
  2179. public static function getSchemaBuilder(){
  2180. return Illuminate\Database\MySqlConnection::getSchemaBuilder();
  2181. }
  2182. /**
  2183. * Set the query grammar to the default implementation.
  2184. *
  2185. * @return void
  2186. * @static
  2187. */
  2188. public static function useDefaultQueryGrammar(){
  2189. //Method inherited from Illuminate\Database\Connection
  2190. Illuminate\Database\MySqlConnection::useDefaultQueryGrammar();
  2191. }
  2192. /**
  2193. * Set the schema grammar to the default implementation.
  2194. *
  2195. * @return void
  2196. * @static
  2197. */
  2198. public static function useDefaultSchemaGrammar(){
  2199. //Method inherited from Illuminate\Database\Connection
  2200. Illuminate\Database\MySqlConnection::useDefaultSchemaGrammar();
  2201. }
  2202. /**
  2203. * Set the query post processor to the default implementation.
  2204. *
  2205. * @return void
  2206. * @static
  2207. */
  2208. public static function useDefaultPostProcessor(){
  2209. //Method inherited from Illuminate\Database\Connection
  2210. Illuminate\Database\MySqlConnection::useDefaultPostProcessor();
  2211. }
  2212. /**
  2213. * Begin a fluent query against a database table.
  2214. *
  2215. * @param string $table
  2216. * @return \Illuminate\Database\Query\Builder
  2217. * @static
  2218. */
  2219. public static function table($table){
  2220. //Method inherited from Illuminate\Database\Connection
  2221. return Illuminate\Database\MySqlConnection::table($table);
  2222. }
  2223. /**
  2224. * Get a new raw query expression.
  2225. *
  2226. * @param mixed $value
  2227. * @return \Illuminate\Database\Query\Expression
  2228. * @static
  2229. */
  2230. public static function raw($value){
  2231. //Method inherited from Illuminate\Database\Connection
  2232. return Illuminate\Database\MySqlConnection::raw($value);
  2233. }
  2234. /**
  2235. * Run a select statement and return a single result.
  2236. *
  2237. * @param string $query
  2238. * @param array $bindings
  2239. * @return mixed
  2240. * @static
  2241. */
  2242. public static function selectOne($query, $bindings = array()){
  2243. //Method inherited from Illuminate\Database\Connection
  2244. return Illuminate\Database\MySqlConnection::selectOne($query, $bindings);
  2245. }
  2246. /**
  2247. * Run a select statement against the database.
  2248. *
  2249. * @param string $query
  2250. * @param array $bindings
  2251. * @return array
  2252. * @static
  2253. */
  2254. public static function select($query, $bindings = array()){
  2255. //Method inherited from Illuminate\Database\Connection
  2256. return Illuminate\Database\MySqlConnection::select($query, $bindings);
  2257. }
  2258. /**
  2259. * Run an insert statement against the database.
  2260. *
  2261. * @param string $query
  2262. * @param array $bindings
  2263. * @return bool
  2264. * @static
  2265. */
  2266. public static function insert($query, $bindings = array()){
  2267. //Method inherited from Illuminate\Database\Connection
  2268. return Illuminate\Database\MySqlConnection::insert($query, $bindings);
  2269. }
  2270. /**
  2271. * Run an update statement against the database.
  2272. *
  2273. * @param string $query
  2274. * @param array $bindings
  2275. * @return int
  2276. * @static
  2277. */
  2278. public static function update($query, $bindings = array()){
  2279. //Method inherited from Illuminate\Database\Connection
  2280. return Illuminate\Database\MySqlConnection::update($query, $bindings);
  2281. }
  2282. /**
  2283. * Run a delete statement against the database.
  2284. *
  2285. * @param string $query
  2286. * @param array $bindings
  2287. * @return int
  2288. * @static
  2289. */
  2290. public static function delete($query, $bindings = array()){
  2291. //Method inherited from Illuminate\Database\Connection
  2292. return Illuminate\Database\MySqlConnection::delete($query, $bindings);
  2293. }
  2294. /**
  2295. * Execute an SQL statement and return the boolean result.
  2296. *
  2297. * @param string $query
  2298. * @param array $bindings
  2299. * @return bool
  2300. * @static
  2301. */
  2302. public static function statement($query, $bindings = array()){
  2303. //Method inherited from Illuminate\Database\Connection
  2304. return Illuminate\Database\MySqlConnection::statement($query, $bindings);
  2305. }
  2306. /**
  2307. * Run an SQL statement and get the number of rows affected.
  2308. *
  2309. * @param string $query
  2310. * @param array $bindings
  2311. * @return int
  2312. * @static
  2313. */
  2314. public static function affectingStatement($query, $bindings = array()){
  2315. //Method inherited from Illuminate\Database\Connection
  2316. return Illuminate\Database\MySqlConnection::affectingStatement($query, $bindings);
  2317. }
  2318. /**
  2319. * Run a raw, unprepared query against the PDO connection.
  2320. *
  2321. * @param string $query
  2322. * @return bool
  2323. * @static
  2324. */
  2325. public static function unprepared($query){
  2326. //Method inherited from Illuminate\Database\Connection
  2327. return Illuminate\Database\MySqlConnection::unprepared($query);
  2328. }
  2329. /**
  2330. * Prepare the query bindings for execution.
  2331. *
  2332. * @param array $bindings
  2333. * @return array
  2334. * @static
  2335. */
  2336. public static function prepareBindings($bindings){
  2337. //Method inherited from Illuminate\Database\Connection
  2338. return Illuminate\Database\MySqlConnection::prepareBindings($bindings);
  2339. }
  2340. /**
  2341. * Execute a Closure within a transaction.
  2342. *
  2343. * @param Closure $callback
  2344. * @return mixed
  2345. * @static
  2346. */
  2347. public static function transaction($callback){
  2348. //Method inherited from Illuminate\Database\Connection
  2349. return Illuminate\Database\MySqlConnection::transaction($callback);
  2350. }
  2351. /**
  2352. * Start a new database transaction.
  2353. *
  2354. * @return void
  2355. * @static
  2356. */
  2357. public static function beginTransaction(){
  2358. //Method inherited from Illuminate\Database\Connection
  2359. Illuminate\Database\MySqlConnection::beginTransaction();
  2360. }
  2361. /**
  2362. * Commit the active database transaction.
  2363. *
  2364. * @return void
  2365. * @static
  2366. */
  2367. public static function commit(){
  2368. //Method inherited from Illuminate\Database\Connection
  2369. Illuminate\Database\MySqlConnection::commit();
  2370. }
  2371. /**
  2372. * Rollback the active database transaction.
  2373. *
  2374. * @return void
  2375. * @static
  2376. */
  2377. public static function rollBack(){
  2378. //Method inherited from Illuminate\Database\Connection
  2379. Illuminate\Database\MySqlConnection::rollBack();
  2380. }
  2381. /**
  2382. * Execute the given callback in "dry run" mode.
  2383. *
  2384. * @param Closure $callback
  2385. * @return array
  2386. * @static
  2387. */
  2388. public static function pretend($callback){
  2389. //Method inherited from Illuminate\Database\Connection
  2390. return Illuminate\Database\MySqlConnection::pretend($callback);
  2391. }
  2392. /**
  2393. * Log a query in the connection's query log.
  2394. *
  2395. * @param string $query
  2396. * @param array $bindings
  2397. * @param $time
  2398. * @return void
  2399. * @static
  2400. */
  2401. public static function logQuery($query, $bindings, $time = null){
  2402. //Method inherited from Illuminate\Database\Connection
  2403. Illuminate\Database\MySqlConnection::logQuery($query, $bindings, $time);
  2404. }
  2405. /**
  2406. * Register a database query listener with the connection.
  2407. *
  2408. * @param Closure $callback
  2409. * @return void
  2410. * @static
  2411. */
  2412. public static function listen($callback){
  2413. //Method inherited from Illuminate\Database\Connection
  2414. Illuminate\Database\MySqlConnection::listen($callback);
  2415. }
  2416. /**
  2417. * Get a Doctrine Schema Column instance.
  2418. *
  2419. * @param string $table
  2420. * @param string $column
  2421. * @return \Doctrine\DBAL\Schema\Column
  2422. * @static
  2423. */
  2424. public static function getDoctrineColumn($table, $column){
  2425. //Method inherited from Illuminate\Database\Connection
  2426. return Illuminate\Database\MySqlConnection::getDoctrineColumn($table, $column);
  2427. }
  2428. /**
  2429. * Get the Doctrine DBAL schema manager for the connection.
  2430. *
  2431. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  2432. * @static
  2433. */
  2434. public static function getDoctrineSchemaManager(){
  2435. //Method inherited from Illuminate\Database\Connection
  2436. return Illuminate\Database\MySqlConnection::getDoctrineSchemaManager();
  2437. }
  2438. /**
  2439. * Get the Doctrine DBAL database connection instance.
  2440. *
  2441. * @return \Doctrine\DBAL\Connection
  2442. * @static
  2443. */
  2444. public static function getDoctrineConnection(){
  2445. //Method inherited from Illuminate\Database\Connection
  2446. return Illuminate\Database\MySqlConnection::getDoctrineConnection();
  2447. }
  2448. /**
  2449. * Get the currently used PDO connection.
  2450. *
  2451. * @return PDO
  2452. * @static
  2453. */
  2454. public static function getPdo(){
  2455. //Method inherited from Illuminate\Database\Connection
  2456. return Illuminate\Database\MySqlConnection::getPdo();
  2457. }
  2458. /**
  2459. * Get the database connection name.
  2460. *
  2461. * @return string|null
  2462. * @static
  2463. */
  2464. public static function getName(){
  2465. //Method inherited from Illuminate\Database\Connection
  2466. return Illuminate\Database\MySqlConnection::getName();
  2467. }
  2468. /**
  2469. * Get an option from the configuration options.
  2470. *
  2471. * @param string $option
  2472. * @return mixed
  2473. * @static
  2474. */
  2475. public static function getConfig($option){
  2476. //Method inherited from Illuminate\Database\Connection
  2477. return Illuminate\Database\MySqlConnection::getConfig($option);
  2478. }
  2479. /**
  2480. * Get the PDO driver name.
  2481. *
  2482. * @return string
  2483. * @static
  2484. */
  2485. public static function getDriverName(){
  2486. //Method inherited from Illuminate\Database\Connection
  2487. return Illuminate\Database\MySqlConnection::getDriverName();
  2488. }
  2489. /**
  2490. * Get the query grammar used by the connection.
  2491. *
  2492. * @return \Illuminate\Database\Query\Grammars\Grammar
  2493. * @static
  2494. */
  2495. public static function getQueryGrammar(){
  2496. //Method inherited from Illuminate\Database\Connection
  2497. return Illuminate\Database\MySqlConnection::getQueryGrammar();
  2498. }
  2499. /**
  2500. * Set the query grammar used by the connection.
  2501. *
  2502. * @param \Illuminate\Database\Query\Grammars\Grammar
  2503. * @return void
  2504. * @static
  2505. */
  2506. public static function setQueryGrammar($grammar){
  2507. //Method inherited from Illuminate\Database\Connection
  2508. Illuminate\Database\MySqlConnection::setQueryGrammar($grammar);
  2509. }
  2510. /**
  2511. * Get the schema grammar used by the connection.
  2512. *
  2513. * @return \Illuminate\Database\Query\Grammars\Grammar
  2514. * @static
  2515. */
  2516. public static function getSchemaGrammar(){
  2517. //Method inherited from Illuminate\Database\Connection
  2518. return Illuminate\Database\MySqlConnection::getSchemaGrammar();
  2519. }
  2520. /**
  2521. * Set the schema grammar used by the connection.
  2522. *
  2523. * @param \Illuminate\Database\Schema\Grammars\Grammar
  2524. * @return void
  2525. * @static
  2526. */
  2527. public static function setSchemaGrammar($grammar){
  2528. //Method inherited from Illuminate\Database\Connection
  2529. Illuminate\Database\MySqlConnection::setSchemaGrammar($grammar);
  2530. }
  2531. /**
  2532. * Get the query post processor used by the connection.
  2533. *
  2534. * @return \Illuminate\Database\Query\Processors\Processor
  2535. * @static
  2536. */
  2537. public static function getPostProcessor(){
  2538. //Method inherited from Illuminate\Database\Connection
  2539. return Illuminate\Database\MySqlConnection::getPostProcessor();
  2540. }
  2541. /**
  2542. * Set the query post processor used by the connection.
  2543. *
  2544. * @param \Illuminate\Database\Query\Processors\Processor
  2545. * @return void
  2546. * @static
  2547. */
  2548. public static function setPostProcessor($processor){
  2549. //Method inherited from Illuminate\Database\Connection
  2550. Illuminate\Database\MySqlConnection::setPostProcessor($processor);
  2551. }
  2552. /**
  2553. * Get the event dispatcher used by the connection.
  2554. *
  2555. * @return \Illuminate\Events\Dispatcher
  2556. * @static
  2557. */
  2558. public static function getEventDispatcher(){
  2559. //Method inherited from Illuminate\Database\Connection
  2560. return Illuminate\Database\MySqlConnection::getEventDispatcher();
  2561. }
  2562. /**
  2563. * Set the event dispatcher instance on the connection.
  2564. *
  2565. * @param \Illuminate\Events\Dispatcher
  2566. * @return void
  2567. * @static
  2568. */
  2569. public static function setEventDispatcher($events){
  2570. //Method inherited from Illuminate\Database\Connection
  2571. Illuminate\Database\MySqlConnection::setEventDispatcher($events);
  2572. }
  2573. /**
  2574. * Get the paginator environment instance.
  2575. *
  2576. * @return \Illuminate\Pagination\Environment
  2577. * @static
  2578. */
  2579. public static function getPaginator(){
  2580. //Method inherited from Illuminate\Database\Connection
  2581. return Illuminate\Database\MySqlConnection::getPaginator();
  2582. }
  2583. /**
  2584. * Set the pagination environment instance.
  2585. *
  2586. * @param \Illuminate\Pagination\Environment|\Closure $paginator
  2587. * @return void
  2588. * @static
  2589. */
  2590. public static function setPaginator($paginator){
  2591. //Method inherited from Illuminate\Database\Connection
  2592. Illuminate\Database\MySqlConnection::setPaginator($paginator);
  2593. }
  2594. /**
  2595. * Get the cache manager instance.
  2596. *
  2597. * @return \Illuminate\Cache\CacheManager
  2598. * @static
  2599. */
  2600. public static function getCacheManager(){
  2601. //Method inherited from Illuminate\Database\Connection
  2602. return Illuminate\Database\MySqlConnection::getCacheManager();
  2603. }
  2604. /**
  2605. * Set the cache manager instance on the connection.
  2606. *
  2607. * @param \Illuminate\Cache\CacheManager|\Closure $cache
  2608. * @return void
  2609. * @static
  2610. */
  2611. public static function setCacheManager($cache){
  2612. //Method inherited from Illuminate\Database\Connection
  2613. Illuminate\Database\MySqlConnection::setCacheManager($cache);
  2614. }
  2615. /**
  2616. * Determine if the connection in a "dry run".
  2617. *
  2618. * @return bool
  2619. * @static
  2620. */
  2621. public static function pretending(){
  2622. //Method inherited from Illuminate\Database\Connection
  2623. return Illuminate\Database\MySqlConnection::pretending();
  2624. }
  2625. /**
  2626. * Get the default fetch mode for the connection.
  2627. *
  2628. * @return int
  2629. * @static
  2630. */
  2631. public static function getFetchMode(){
  2632. //Method inherited from Illuminate\Database\Connection
  2633. return Illuminate\Database\MySqlConnection::getFetchMode();
  2634. }
  2635. /**
  2636. * Set the default fetch mode for the connection.
  2637. *
  2638. * @param int $fetchMode
  2639. * @return int
  2640. * @static
  2641. */
  2642. public static function setFetchMode($fetchMode){
  2643. //Method inherited from Illuminate\Database\Connection
  2644. return Illuminate\Database\MySqlConnection::setFetchMode($fetchMode);
  2645. }
  2646. /**
  2647. * Get the connection query log.
  2648. *
  2649. * @return array
  2650. * @static
  2651. */
  2652. public static function getQueryLog(){
  2653. //Method inherited from Illuminate\Database\Connection
  2654. return Illuminate\Database\MySqlConnection::getQueryLog();
  2655. }
  2656. /**
  2657. * Clear the query log.
  2658. *
  2659. * @return void
  2660. * @static
  2661. */
  2662. public static function flushQueryLog(){
  2663. //Method inherited from Illuminate\Database\Connection
  2664. Illuminate\Database\MySqlConnection::flushQueryLog();
  2665. }
  2666. /**
  2667. * Enable the query log on the connection.
  2668. *
  2669. * @return void
  2670. * @static
  2671. */
  2672. public static function enableQueryLog(){
  2673. //Method inherited from Illuminate\Database\Connection
  2674. Illuminate\Database\MySqlConnection::enableQueryLog();
  2675. }
  2676. /**
  2677. * Disable the query log on the connection.
  2678. *
  2679. * @return void
  2680. * @static
  2681. */
  2682. public static function disableQueryLog(){
  2683. //Method inherited from Illuminate\Database\Connection
  2684. Illuminate\Database\MySqlConnection::disableQueryLog();
  2685. }
  2686. /**
  2687. * Get the name of the connected database.
  2688. *
  2689. * @return string
  2690. * @static
  2691. */
  2692. public static function getDatabaseName(){
  2693. //Method inherited from Illuminate\Database\Connection
  2694. return Illuminate\Database\MySqlConnection::getDatabaseName();
  2695. }
  2696. /**
  2697. * Set the name of the connected database.
  2698. *
  2699. * @param string $database
  2700. * @return string
  2701. * @static
  2702. */
  2703. public static function setDatabaseName($database){
  2704. //Method inherited from Illuminate\Database\Connection
  2705. return Illuminate\Database\MySqlConnection::setDatabaseName($database);
  2706. }
  2707. /**
  2708. * Get the table prefix for the connection.
  2709. *
  2710. * @return string
  2711. * @static
  2712. */
  2713. public static function getTablePrefix(){
  2714. //Method inherited from Illuminate\Database\Connection
  2715. return Illuminate\Database\MySqlConnection::getTablePrefix();
  2716. }
  2717. /**
  2718. * Set the table prefix in use by the connection.
  2719. *
  2720. * @param string $prefix
  2721. * @return void
  2722. * @static
  2723. */
  2724. public static function setTablePrefix($prefix){
  2725. //Method inherited from Illuminate\Database\Connection
  2726. Illuminate\Database\MySqlConnection::setTablePrefix($prefix);
  2727. }
  2728. /**
  2729. * Set the table prefix and return the grammar.
  2730. *
  2731. * @param \Illuminate\Database\Grammar $grammar
  2732. * @return \Illuminate\Database\Grammar
  2733. * @static
  2734. */
  2735. public static function withTablePrefix($grammar){
  2736. //Method inherited from Illuminate\Database\Connection
  2737. return Illuminate\Database\MySqlConnection::withTablePrefix($grammar);
  2738. }
  2739. }
  2740. class Eloquent extends Illuminate\Database\Eloquent\Model{
  2741. /**
  2742. * Find a model by its primary key.
  2743. *
  2744. * @param array $id
  2745. * @param array $columns
  2746. * @return \Illuminate\Database\Eloquent\Model|Collection|static
  2747. * @static
  2748. */
  2749. public static function findMany($id, $columns = array()){
  2750. return Illuminate\Database\Eloquent\Builder::findMany($id, $columns);
  2751. }
  2752. /**
  2753. * Execute the query and get the first result.
  2754. *
  2755. * @param array $columns
  2756. * @return \Illuminate\Database\Eloquent\Model|static|null
  2757. * @static
  2758. */
  2759. public static function first($columns = array()){
  2760. return Illuminate\Database\Eloquent\Builder::first($columns);
  2761. }
  2762. /**
  2763. * Execute the query and get the first result or throw an exception.
  2764. *
  2765. * @param array $columns
  2766. * @return \Illuminate\Database\Eloquent\Model|static
  2767. * @static
  2768. */
  2769. public static function firstOrFail($columns = array()){
  2770. return Illuminate\Database\Eloquent\Builder::firstOrFail($columns);
  2771. }
  2772. /**
  2773. * Execute the query as a "select" statement.
  2774. *
  2775. * @param array $columns
  2776. * @return \Illuminate\Database\Eloquent\Collection|static[]
  2777. * @static
  2778. */
  2779. public static function get($columns = array()){
  2780. return Illuminate\Database\Eloquent\Builder::get($columns);
  2781. }
  2782. /**
  2783. * Pluck a single column from the database.
  2784. *
  2785. * @param string $column
  2786. * @return mixed
  2787. * @static
  2788. */
  2789. public static function pluck($column){
  2790. return Illuminate\Database\Eloquent\Builder::pluck($column);
  2791. }
  2792. /**
  2793. * Chunk the results of the query.
  2794. *
  2795. * @param int $count
  2796. * @param callable $callback
  2797. * @return void
  2798. * @static
  2799. */
  2800. public static function chunk($count, $callback){
  2801. Illuminate\Database\Eloquent\Builder::chunk($count, $callback);
  2802. }
  2803. /**
  2804. * Get an array with the values of a given column.
  2805. *
  2806. * @param string $column
  2807. * @param string $key
  2808. * @return array
  2809. * @static
  2810. */
  2811. public static function lists($column, $key = null){
  2812. return Illuminate\Database\Eloquent\Builder::lists($column, $key);
  2813. }
  2814. /**
  2815. * Get a paginator for the "select" statement.
  2816. *
  2817. * @param int $perPage
  2818. * @param array $columns
  2819. * @return \Illuminate\Pagination\Paginator
  2820. * @static
  2821. */
  2822. public static function paginate($perPage = null, $columns = array()){
  2823. return Illuminate\Database\Eloquent\Builder::paginate($perPage, $columns);
  2824. }
  2825. /**
  2826. * Increment a column's value by a given amount.
  2827. *
  2828. * @param string $column
  2829. * @param int $amount
  2830. * @param array $extra
  2831. * @return int
  2832. * @static
  2833. */
  2834. public static function increment($column, $amount = 1, $extra = array()){
  2835. return Illuminate\Database\Eloquent\Builder::increment($column, $amount, $extra);
  2836. }
  2837. /**
  2838. * Decrement a column's value by a given amount.
  2839. *
  2840. * @param string $column
  2841. * @param int $amount
  2842. * @param array $extra
  2843. * @return int
  2844. * @static
  2845. */
  2846. public static function decrement($column, $amount = 1, $extra = array()){
  2847. return Illuminate\Database\Eloquent\Builder::decrement($column, $amount, $extra);
  2848. }
  2849. /**
  2850. * Get the hydrated models without eager loading.
  2851. *
  2852. * @param array $columns
  2853. * @return array|static[]
  2854. * @static
  2855. */
  2856. public static function getModels($columns = array()){
  2857. return Illuminate\Database\Eloquent\Builder::getModels($columns);
  2858. }
  2859. /**
  2860. * Eager load the relationships for the models.
  2861. *
  2862. * @param array $models
  2863. * @return array
  2864. * @static
  2865. */
  2866. public static function eagerLoadRelations($models){
  2867. return Illuminate\Database\Eloquent\Builder::eagerLoadRelations($models);
  2868. }
  2869. /**
  2870. * Add a relationship count condition to the query.
  2871. *
  2872. * @param string $relation
  2873. * @param string $operator
  2874. * @param int $count
  2875. * @param string $boolean
  2876. * @return \Illuminate\Database\Eloquent\Builder|static
  2877. * @static
  2878. */
  2879. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and'){
  2880. return Illuminate\Database\Eloquent\Builder::has($relation, $operator, $count, $boolean);
  2881. }
  2882. /**
  2883. * Add a relationship count condition to the query with an "or".
  2884. *
  2885. * @param string $relation
  2886. * @param string $operator
  2887. * @param int $count
  2888. * @return \Illuminate\Database\Eloquent\Builder|static
  2889. * @static
  2890. */
  2891. public static function orHas($relation, $operator = '>=', $count = 1){
  2892. return Illuminate\Database\Eloquent\Builder::orHas($relation, $operator, $count);
  2893. }
  2894. /**
  2895. * Get the underlying query builder instance.
  2896. *
  2897. * @return \Illuminate\Database\Query\Builder|static
  2898. * @static
  2899. */
  2900. public static function getQuery(){
  2901. return Illuminate\Database\Eloquent\Builder::getQuery();
  2902. }
  2903. /**
  2904. * Set the underlying query builder instance.
  2905. *
  2906. * @param \Illuminate\Database\Query\Builder $query
  2907. * @return void
  2908. * @static
  2909. */
  2910. public static function setQuery($query){
  2911. Illuminate\Database\Eloquent\Builder::setQuery($query);
  2912. }
  2913. /**
  2914. * Get the relationships being eagerly loaded.
  2915. *
  2916. * @return array
  2917. * @static
  2918. */
  2919. public static function getEagerLoads(){
  2920. return Illuminate\Database\Eloquent\Builder::getEagerLoads();
  2921. }
  2922. /**
  2923. * Set the relationships being eagerly loaded.
  2924. *
  2925. * @param array $eagerLoad
  2926. * @return void
  2927. * @static
  2928. */
  2929. public static function setEagerLoads($eagerLoad){
  2930. Illuminate\Database\Eloquent\Builder::setEagerLoads($eagerLoad);
  2931. }
  2932. /**
  2933. * Get the model instance being queried.
  2934. *
  2935. * @return \Illuminate\Database\Eloquent\Model
  2936. * @static
  2937. */
  2938. public static function getModel(){
  2939. return Illuminate\Database\Eloquent\Builder::getModel();
  2940. }
  2941. /**
  2942. * Set a model instance for the model being queried.
  2943. *
  2944. * @param \Illuminate\Database\Eloquent\Model $model
  2945. * @return \Illuminate\Database\Eloquent\Builder
  2946. * @static
  2947. */
  2948. public static function setModel($model){
  2949. return Illuminate\Database\Eloquent\Builder::setModel($model);
  2950. }
  2951. /**
  2952. * Set the columns to be selected.
  2953. *
  2954. * @param array $columns
  2955. * @return \Illuminate\Database\Query\Builder|static
  2956. * @static
  2957. */
  2958. public static function select($columns = array()){
  2959. return Illuminate\Database\Query\Builder::select($columns);
  2960. }
  2961. /**
  2962. * Add a new select column to the query.
  2963. *
  2964. * @param mixed $column
  2965. * @return \Illuminate\Database\Query\Builder|static
  2966. * @static
  2967. */
  2968. public static function addSelect($column){
  2969. return Illuminate\Database\Query\Builder::addSelect($column);
  2970. }
  2971. /**
  2972. * Force the query to only return distinct results.
  2973. *
  2974. * @return \Illuminate\Database\Query\Builder|static
  2975. * @static
  2976. */
  2977. public static function distinct(){
  2978. return Illuminate\Database\Query\Builder::distinct();
  2979. }
  2980. /**
  2981. * Set the table which the query is targeting.
  2982. *
  2983. * @param string $table
  2984. * @return \Illuminate\Database\Query\Builder|static
  2985. * @static
  2986. */
  2987. public static function from($table){
  2988. return Illuminate\Database\Query\Builder::from($table);
  2989. }
  2990. /**
  2991. * Add a join clause to the query.
  2992. *
  2993. * @param string $table
  2994. * @param string $first
  2995. * @param string $operator
  2996. * @param string $second
  2997. * @param string $type
  2998. * @return \Illuminate\Database\Query\Builder|static
  2999. * @static
  3000. */
  3001. public static function join($table, $first, $operator = null, $second = null, $type = 'inner'){
  3002. return Illuminate\Database\Query\Builder::join($table, $first, $operator, $second, $type);
  3003. }
  3004. /**
  3005. * Add a left join to the query.
  3006. *
  3007. * @param string $table
  3008. * @param string $first
  3009. * @param string $operator
  3010. * @param string $second
  3011. * @return \Illuminate\Database\Query\Builder|static
  3012. * @static
  3013. */
  3014. public static function leftJoin($table, $first, $operator = null, $second = null){
  3015. return Illuminate\Database\Query\Builder::leftJoin($table, $first, $operator, $second);
  3016. }
  3017. /**
  3018. * Add a basic where clause to the query.
  3019. *
  3020. * @param string $column
  3021. * @param string $operator
  3022. * @param mixed $value
  3023. * @param string $boolean
  3024. * @return \Illuminate\Database\Query\Builder|static
  3025. * @static
  3026. */
  3027. public static function where($column, $operator = null, $value = null, $boolean = 'and'){
  3028. return Illuminate\Database\Query\Builder::where($column, $operator, $value, $boolean);
  3029. }
  3030. /**
  3031. * Add an "or where" clause to the query.
  3032. *
  3033. * @param string $column
  3034. * @param string $operator
  3035. * @param mixed $value
  3036. * @return \Illuminate\Database\Query\Builder|static
  3037. * @static
  3038. */
  3039. public static function orWhere($column, $operator = null, $value = null){
  3040. return Illuminate\Database\Query\Builder::orWhere($column, $operator, $value);
  3041. }
  3042. /**
  3043. * Add a raw where clause to the query.
  3044. *
  3045. * @param string $sql
  3046. * @param array $bindings
  3047. * @param string $boolean
  3048. * @return \Illuminate\Database\Query\Builder|static
  3049. * @static
  3050. */
  3051. public static function whereRaw($sql, $bindings = array(), $boolean = 'and'){
  3052. return Illuminate\Database\Query\Builder::whereRaw($sql, $bindings, $boolean);
  3053. }
  3054. /**
  3055. * Add a raw or where clause to the query.
  3056. *
  3057. * @param string $sql
  3058. * @param array $bindings
  3059. * @return \Illuminate\Database\Query\Builder|static
  3060. * @static
  3061. */
  3062. public static function orWhereRaw($sql, $bindings = array()){
  3063. return Illuminate\Database\Query\Builder::orWhereRaw($sql, $bindings);
  3064. }
  3065. /**
  3066. * Add a where between statement to the query.
  3067. *
  3068. * @param string $column
  3069. * @param array $values
  3070. * @param string $boolean
  3071. * @return \Illuminate\Database\Query\Builder|static
  3072. * @static
  3073. */
  3074. public static function whereBetween($column, $values, $boolean = 'and'){
  3075. return Illuminate\Database\Query\Builder::whereBetween($column, $values, $boolean);
  3076. }
  3077. /**
  3078. * Add an or where between statement to the query.
  3079. *
  3080. * @param string $column
  3081. * @param array $values
  3082. * @return \Illuminate\Database\Query\Builder|static
  3083. * @static
  3084. */
  3085. public static function orWhereBetween($column, $values){
  3086. return Illuminate\Database\Query\Builder::orWhereBetween($column, $values);
  3087. }
  3088. /**
  3089. * Add a nested where statement to the query.
  3090. *
  3091. * @param \Closure $callback
  3092. * @param string $boolean
  3093. * @return \Illuminate\Database\Query\Builder|static
  3094. * @static
  3095. */
  3096. public static function whereNested($callback, $boolean = 'and'){
  3097. return Illuminate\Database\Query\Builder::whereNested($callback, $boolean);
  3098. }
  3099. /**
  3100. * Add an exists clause to the query.
  3101. *
  3102. * @param \Closure $callback
  3103. * @param string $boolean
  3104. * @param bool $not
  3105. * @return \Illuminate\Database\Query\Builder|static
  3106. * @static
  3107. */
  3108. public static function whereExists($callback, $boolean = 'and', $not = false){
  3109. return Illuminate\Database\Query\Builder::whereExists($callback, $boolean, $not);
  3110. }
  3111. /**
  3112. * Add an or exists clause to the query.
  3113. *
  3114. * @param \Closure $callback
  3115. * @param bool $not
  3116. * @return \Illuminate\Database\Query\Builder|static
  3117. * @static
  3118. */
  3119. public static function orWhereExists($callback, $not = false){
  3120. return Illuminate\Database\Query\Builder::orWhereExists($callback, $not);
  3121. }
  3122. /**
  3123. * Add a where not exists clause to the query.
  3124. *
  3125. * @param \Closure $callback
  3126. * @param string $boolean
  3127. * @return \Illuminate\Database\Query\Builder|static
  3128. * @static
  3129. */
  3130. public static function whereNotExists($callback, $boolean = 'and'){
  3131. return Illuminate\Database\Query\Builder::whereNotExists($callback, $boolean);
  3132. }
  3133. /**
  3134. * Add a where not exists clause to the query.
  3135. *
  3136. * @param \Closure $callback
  3137. * @return \Illuminate\Database\Query\Builder|static
  3138. * @static
  3139. */
  3140. public static function orWhereNotExists($callback){
  3141. return Illuminate\Database\Query\Builder::orWhereNotExists($callback);
  3142. }
  3143. /**
  3144. * Add a "where in" clause to the query.
  3145. *
  3146. * @param string $column
  3147. * @param mixed $values
  3148. * @param string $boolean
  3149. * @param bool $not
  3150. * @return \Illuminate\Database\Query\Builder|static
  3151. * @static
  3152. */
  3153. public static function whereIn($column, $values, $boolean = 'and', $not = false){
  3154. return Illuminate\Database\Query\Builder::whereIn($column, $values, $boolean, $not);
  3155. }
  3156. /**
  3157. * Add an "or where in" clause to the query.
  3158. *
  3159. * @param string $column
  3160. * @param mixed $values
  3161. * @return \Illuminate\Database\Query\Builder|static
  3162. * @static
  3163. */
  3164. public static function orWhereIn($column, $values){
  3165. return Illuminate\Database\Query\Builder::orWhereIn($column, $values);
  3166. }
  3167. /**
  3168. * Add a "where not in" clause to the query.
  3169. *
  3170. * @param string $column
  3171. * @param mixed $values
  3172. * @param string $boolean
  3173. * @return \Illuminate\Database\Query\Builder|static
  3174. * @static
  3175. */
  3176. public static function whereNotIn($column, $values, $boolean = 'and'){
  3177. return Illuminate\Database\Query\Builder::whereNotIn($column, $values, $boolean);
  3178. }
  3179. /**
  3180. * Add an "or where not in" clause to the query.
  3181. *
  3182. * @param string $column
  3183. * @param mixed $values
  3184. * @return \Illuminate\Database\Query\Builder|static
  3185. * @static
  3186. */
  3187. public static function orWhereNotIn($column, $values){
  3188. return Illuminate\Database\Query\Builder::orWhereNotIn($column, $values);
  3189. }
  3190. /**
  3191. * Add a "where null" clause to the query.
  3192. *
  3193. * @param string $column
  3194. * @param string $boolean
  3195. * @param bool $not
  3196. * @return \Illuminate\Database\Query\Builder|static
  3197. * @static
  3198. */
  3199. public static function whereNull($column, $boolean = 'and', $not = false){
  3200. return Illuminate\Database\Query\Builder::whereNull($column, $boolean, $not);
  3201. }
  3202. /**
  3203. * Add an "or where null" clause to the query.
  3204. *
  3205. * @param string $column
  3206. * @return \Illuminate\Database\Query\Builder|static
  3207. * @static
  3208. */
  3209. public static function orWhereNull($column){
  3210. return Illuminate\Database\Query\Builder::orWhereNull($column);
  3211. }
  3212. /**
  3213. * Add a "where not null" clause to the query.
  3214. *
  3215. * @param string $column
  3216. * @param string $boolean
  3217. * @return \Illuminate\Database\Query\Builder|static
  3218. * @static
  3219. */
  3220. public static function whereNotNull($column, $boolean = 'and'){
  3221. return Illuminate\Database\Query\Builder::whereNotNull($column, $boolean);
  3222. }
  3223. /**
  3224. * Add an "or where not null" clause to the query.
  3225. *
  3226. * @param string $column
  3227. * @return \Illuminate\Database\Query\Builder|static
  3228. * @static
  3229. */
  3230. public static function orWhereNotNull($column){
  3231. return Illuminate\Database\Query\Builder::orWhereNotNull($column);
  3232. }
  3233. /**
  3234. * Handles dynamic "where" clauses to the query.
  3235. *
  3236. * @param string $method
  3237. * @param string $parameters
  3238. * @return \Illuminate\Database\Query\Builder|static
  3239. * @static
  3240. */
  3241. public static function dynamicWhere($method, $parameters){
  3242. return Illuminate\Database\Query\Builder::dynamicWhere($method, $parameters);
  3243. }
  3244. /**
  3245. * Add a "group by" clause to the query.
  3246. *
  3247. * @param dynamic $columns
  3248. * @return \Illuminate\Database\Query\Builder|static
  3249. * @static
  3250. */
  3251. public static function groupBy(){
  3252. return Illuminate\Database\Query\Builder::groupBy();
  3253. }
  3254. /**
  3255. * Add a "having" clause to the query.
  3256. *
  3257. * @param string $column
  3258. * @param string $operator
  3259. * @param string $value
  3260. * @return \Illuminate\Database\Query\Builder|static
  3261. * @static
  3262. */
  3263. public static function having($column, $operator = null, $value = null){
  3264. return Illuminate\Database\Query\Builder::having($column, $operator, $value);
  3265. }
  3266. /**
  3267. * Add a raw having clause to the query.
  3268. *
  3269. * @param string $sql
  3270. * @param array $bindings
  3271. * @param string $boolean
  3272. * @return \Illuminate\Database\Query\Builder|static
  3273. * @static
  3274. */
  3275. public static function havingRaw($sql, $bindings = array(), $boolean = 'and'){
  3276. return Illuminate\Database\Query\Builder::havingRaw($sql, $bindings, $boolean);
  3277. }
  3278. /**
  3279. * Add a raw or having clause to the query.
  3280. *
  3281. * @param string $sql
  3282. * @param array $bindings
  3283. * @return \Illuminate\Database\Query\Builder|static
  3284. * @static
  3285. */
  3286. public static function orHavingRaw($sql, $bindings = array()){
  3287. return Illuminate\Database\Query\Builder::orHavingRaw($sql, $bindings);
  3288. }
  3289. /**
  3290. * Add an "order by" clause to the query.
  3291. *
  3292. * @param string $column
  3293. * @param string $direction
  3294. * @return \Illuminate\Database\Query\Builder|static
  3295. * @static
  3296. */
  3297. public static function orderBy($column, $direction = 'asc'){
  3298. return Illuminate\Database\Query\Builder::orderBy($column, $direction);
  3299. }
  3300. /**
  3301. * Add a raw "order by" clause to the query.
  3302. *
  3303. * @param string $sql
  3304. * @param array $bindings
  3305. * @return \Illuminate\Database\Query\Builder|static
  3306. * @static
  3307. */
  3308. public static function orderByRaw($sql, $bindings = array()){
  3309. return Illuminate\Database\Query\Builder::orderByRaw($sql, $bindings);
  3310. }
  3311. /**
  3312. * Set the "offset" value of the query.
  3313. *
  3314. * @param int $value
  3315. * @return \Illuminate\Database\Query\Builder|static
  3316. * @static
  3317. */
  3318. public static function offset($value){
  3319. return Illuminate\Database\Query\Builder::offset($value);
  3320. }
  3321. /**
  3322. * Alias to set the "offset" value of the query.
  3323. *
  3324. * @param int $value
  3325. * @return \Illuminate\Database\Query\Builder|static
  3326. * @static
  3327. */
  3328. public static function skip($value){
  3329. return Illuminate\Database\Query\Builder::skip($value);
  3330. }
  3331. /**
  3332. * Set the "limit" value of the query.
  3333. *
  3334. * @param int $value
  3335. * @return \Illuminate\Database\Query\Builder|static
  3336. * @static
  3337. */
  3338. public static function limit($value){
  3339. return Illuminate\Database\Query\Builder::limit($value);
  3340. }
  3341. /**
  3342. * Alias to set the "limit" value of the query.
  3343. *
  3344. * @param int $value
  3345. * @return \Illuminate\Database\Query\Builder|static
  3346. * @static
  3347. */
  3348. public static function take($value){
  3349. return Illuminate\Database\Query\Builder::take($value);
  3350. }
  3351. /**
  3352. * Set the limit and offset for a given page.
  3353. *
  3354. * @param int $page
  3355. * @param int $perPage
  3356. * @return \Illuminate\Database\Query\Builder|static
  3357. * @static
  3358. */
  3359. public static function forPage($page, $perPage = 15){
  3360. return Illuminate\Database\Query\Builder::forPage($page, $perPage);
  3361. }
  3362. /**
  3363. * Add a union statement to the query.
  3364. *
  3365. * @param \Illuminate\Database\Query\Builder|\Closure $query
  3366. * @param bool $all
  3367. * @return \Illuminate\Database\Query\Builder|static
  3368. * @static
  3369. */
  3370. public static function union($query, $all = false){
  3371. return Illuminate\Database\Query\Builder::union($query, $all);
  3372. }
  3373. /**
  3374. * Add a union all statement to the query.
  3375. *
  3376. * @param \Illuminate\Database\Query\Builder|\Closure $query
  3377. * @return \Illuminate\Database\Query\Builder|static
  3378. * @static
  3379. */
  3380. public static function unionAll($query){
  3381. return Illuminate\Database\Query\Builder::unionAll($query);
  3382. }
  3383. /**
  3384. * Get the SQL representation of the query.
  3385. *
  3386. * @return string
  3387. * @static
  3388. */
  3389. public static function toSql(){
  3390. return Illuminate\Database\Query\Builder::toSql();
  3391. }
  3392. /**
  3393. * Indicate that the query results should be cached.
  3394. *
  3395. * @param int $minutes
  3396. * @param string $key
  3397. * @return \Illuminate\Database\Query\Builder|static
  3398. * @static
  3399. */
  3400. public static function remember($minutes, $key = null){
  3401. return Illuminate\Database\Query\Builder::remember($minutes, $key);
  3402. }
  3403. /**
  3404. * Execute the query as a fresh "select" statement.
  3405. *
  3406. * @param array $columns
  3407. * @return array|static[]
  3408. * @static
  3409. */
  3410. public static function getFresh($columns = array()){
  3411. return Illuminate\Database\Query\Builder::getFresh($columns);
  3412. }
  3413. /**
  3414. * Execute the query as a cached "select" statement.
  3415. *
  3416. * @param array $columns
  3417. * @return array
  3418. * @static
  3419. */
  3420. public static function getCached($columns = array()){
  3421. return Illuminate\Database\Query\Builder::getCached($columns);
  3422. }
  3423. /**
  3424. * Get a unique cache key for the complete query.
  3425. *
  3426. * @return string
  3427. * @static
  3428. */
  3429. public static function getCacheKey(){
  3430. return Illuminate\Database\Query\Builder::getCacheKey();
  3431. }
  3432. /**
  3433. * Generate the unique cache key for the query.
  3434. *
  3435. * @return string
  3436. * @static
  3437. */
  3438. public static function generateCacheKey(){
  3439. return Illuminate\Database\Query\Builder::generateCacheKey();
  3440. }
  3441. /**
  3442. * Concatenate values of a given column as a string.
  3443. *
  3444. * @param string $column
  3445. * @param string $glue
  3446. * @return string
  3447. * @static
  3448. */
  3449. public static function implode($column, $glue = null){
  3450. return Illuminate\Database\Query\Builder::implode($column, $glue);
  3451. }
  3452. /**
  3453. * Build a paginator instance from a raw result array.
  3454. *
  3455. * @param \Illuminate\Pagination\Environment $paginator
  3456. * @param array $results
  3457. * @param int $perPage
  3458. * @return \Illuminate\Pagination\Paginator
  3459. * @static
  3460. */
  3461. public static function buildRawPaginator($paginator, $results, $perPage){
  3462. return Illuminate\Database\Query\Builder::buildRawPaginator($paginator, $results, $perPage);
  3463. }
  3464. /**
  3465. * Get the count of the total records for pagination.
  3466. *
  3467. * @return int
  3468. * @static
  3469. */
  3470. public static function getPaginationCount(){
  3471. return Illuminate\Database\Query\Builder::getPaginationCount();
  3472. }
  3473. /**
  3474. * Determine if any rows exist for the current query.
  3475. *
  3476. * @return bool
  3477. * @static
  3478. */
  3479. public static function exists(){
  3480. return Illuminate\Database\Query\Builder::exists();
  3481. }
  3482. /**
  3483. * Retrieve the "count" result of the query.
  3484. *
  3485. * @param string $column
  3486. * @return int
  3487. * @static
  3488. */
  3489. public static function count($column = '*'){
  3490. return Illuminate\Database\Query\Builder::count($column);
  3491. }
  3492. /**
  3493. * Retrieve the minimum value of a given column.
  3494. *
  3495. * @param string $column
  3496. * @return mixed
  3497. * @static
  3498. */
  3499. public static function min($column){
  3500. return Illuminate\Database\Query\Builder::min($column);
  3501. }
  3502. /**
  3503. * Retrieve the maximum value of a given column.
  3504. *
  3505. * @param string $column
  3506. * @return mixed
  3507. * @static
  3508. */
  3509. public static function max($column){
  3510. return Illuminate\Database\Query\Builder::max($column);
  3511. }
  3512. /**
  3513. * Retrieve the sum of the values of a given column.
  3514. *
  3515. * @param string $column
  3516. * @return mixed
  3517. * @static
  3518. */
  3519. public static function sum($column){
  3520. return Illuminate\Database\Query\Builder::sum($column);
  3521. }
  3522. /**
  3523. * Retrieve the average of the values of a given column.
  3524. *
  3525. * @param string $column
  3526. * @return mixed
  3527. * @static
  3528. */
  3529. public static function avg($column){
  3530. return Illuminate\Database\Query\Builder::avg($column);
  3531. }
  3532. /**
  3533. * Execute an aggregate function on the database.
  3534. *
  3535. * @param string $function
  3536. * @param array $columns
  3537. * @return mixed
  3538. * @static
  3539. */
  3540. public static function aggregate($function, $columns = array()){
  3541. return Illuminate\Database\Query\Builder::aggregate($function, $columns);
  3542. }
  3543. /**
  3544. * Insert a new record into the database.
  3545. *
  3546. * @param array $values
  3547. * @return bool
  3548. * @static
  3549. */
  3550. public static function insert($values){
  3551. return Illuminate\Database\Query\Builder::insert($values);
  3552. }
  3553. /**
  3554. * Insert a new record and get the value of the primary key.
  3555. *
  3556. * @param array $values
  3557. * @param string $sequence
  3558. * @return int
  3559. * @static
  3560. */
  3561. public static function insertGetId($values, $sequence = null){
  3562. return Illuminate\Database\Query\Builder::insertGetId($values, $sequence);
  3563. }
  3564. /**
  3565. * Run a truncate statement on the table.
  3566. *
  3567. * @return void
  3568. * @static
  3569. */
  3570. public static function truncate(){
  3571. Illuminate\Database\Query\Builder::truncate();
  3572. }
  3573. /**
  3574. * Merge an array of where clauses and bindings.
  3575. *
  3576. * @param array $wheres
  3577. * @param array $bindings
  3578. * @return void
  3579. * @static
  3580. */
  3581. public static function mergeWheres($wheres, $bindings){
  3582. Illuminate\Database\Query\Builder::mergeWheres($wheres, $bindings);
  3583. }
  3584. /**
  3585. * Create a raw database expression.
  3586. *
  3587. * @param mixed $value
  3588. * @return \Illuminate\Database\Query\Expression
  3589. * @static
  3590. */
  3591. public static function raw($value){
  3592. return Illuminate\Database\Query\Builder::raw($value);
  3593. }
  3594. /**
  3595. * Get the current query value bindings.
  3596. *
  3597. * @return array
  3598. * @static
  3599. */
  3600. public static function getBindings(){
  3601. return Illuminate\Database\Query\Builder::getBindings();
  3602. }
  3603. /**
  3604. * Set the bindings on the query builder.
  3605. *
  3606. * @param array $bindings
  3607. * @return \Illuminate\Database\Query\Builder
  3608. * @static
  3609. */
  3610. public static function setBindings($bindings){
  3611. return Illuminate\Database\Query\Builder::setBindings($bindings);
  3612. }
  3613. /**
  3614. * Merge an array of bindings into our bindings.
  3615. *
  3616. * @param \Illuminate\Database\Query\Builder $query
  3617. * @return \Illuminate\Database\Query\Builder
  3618. * @static
  3619. */
  3620. public static function mergeBindings($query){
  3621. return Illuminate\Database\Query\Builder::mergeBindings($query);
  3622. }
  3623. /**
  3624. * Get the database query processor instance.
  3625. *
  3626. * @return \Illuminate\Database\Query\Processors\Processor
  3627. * @static
  3628. */
  3629. public static function getProcessor(){
  3630. return Illuminate\Database\Query\Builder::getProcessor();
  3631. }
  3632. /**
  3633. * Get the query grammar instance.
  3634. *
  3635. * @return \Illuminate\Database\Grammar
  3636. * @static
  3637. */
  3638. public static function getGrammar(){
  3639. return Illuminate\Database\Query\Builder::getGrammar();
  3640. }
  3641. }
  3642. class Event extends Illuminate\Support\Facades\Event{
  3643. /**
  3644. * Create a new event dispatcher instance.
  3645. *
  3646. * @param \Illuminate\Container\Container $container
  3647. * @return void
  3648. * @static
  3649. */
  3650. public static function __construct($container = null){
  3651. Illuminate\Events\Dispatcher::__construct($container);
  3652. }
  3653. /**
  3654. * Register an event listener with the dispatcher.
  3655. *
  3656. * @param string $event
  3657. * @param mixed $listener
  3658. * @param int $priority
  3659. * @return void
  3660. * @static
  3661. */
  3662. public static function listen($event, $listener, $priority = 0){
  3663. Illuminate\Events\Dispatcher::listen($event, $listener, $priority);
  3664. }
  3665. /**
  3666. * Determine if a given event has listeners.
  3667. *
  3668. * @param string $eventName
  3669. * @return bool
  3670. * @static
  3671. */
  3672. public static function hasListeners($eventName){
  3673. return Illuminate\Events\Dispatcher::hasListeners($eventName);
  3674. }
  3675. /**
  3676. * Register a queued event and payload.
  3677. *
  3678. * @param string $event
  3679. * @param array $payload
  3680. * @return void
  3681. * @static
  3682. */
  3683. public static function queue($event, $payload = array()){
  3684. Illuminate\Events\Dispatcher::queue($event, $payload);
  3685. }
  3686. /**
  3687. * Register an event subscriber with the dispatcher.
  3688. *
  3689. * @param string $subscriber
  3690. * @return void
  3691. * @static
  3692. */
  3693. public static function subscribe($subscriber){
  3694. Illuminate\Events\Dispatcher::subscribe($subscriber);
  3695. }
  3696. /**
  3697. * Fire an event until the first non-null response is returned.
  3698. *
  3699. * @param string $event
  3700. * @param array $payload
  3701. * @return mixed
  3702. * @static
  3703. */
  3704. public static function until($event, $payload = array()){
  3705. return Illuminate\Events\Dispatcher::until($event, $payload);
  3706. }
  3707. /**
  3708. * Flush a set of queued events.
  3709. *
  3710. * @param string $event
  3711. * @return void
  3712. * @static
  3713. */
  3714. public static function flush($event){
  3715. Illuminate\Events\Dispatcher::flush($event);
  3716. }
  3717. /**
  3718. * Fire an event and call the listeners.
  3719. *
  3720. * @param string $event
  3721. * @param mixed $payload
  3722. * @param bool $halt
  3723. * @return array|null
  3724. * @static
  3725. */
  3726. public static function fire($event, $payload = array(), $halt = false){
  3727. return Illuminate\Events\Dispatcher::fire($event, $payload, $halt);
  3728. }
  3729. /**
  3730. * Get all of the listeners for a given event name.
  3731. *
  3732. * @param string $eventName
  3733. * @return array
  3734. * @static
  3735. */
  3736. public static function getListeners($eventName){
  3737. return Illuminate\Events\Dispatcher::getListeners($eventName);
  3738. }
  3739. /**
  3740. * Register an event listener with the dispatcher.
  3741. *
  3742. * @param mixed $listener
  3743. * @return mixed
  3744. * @static
  3745. */
  3746. public static function makeListener($listener){
  3747. return Illuminate\Events\Dispatcher::makeListener($listener);
  3748. }
  3749. /**
  3750. * Create a class based listener using the IoC container.
  3751. *
  3752. * @param mixed $listener
  3753. * @return \Closure
  3754. * @static
  3755. */
  3756. public static function createClassListener($listener){
  3757. return Illuminate\Events\Dispatcher::createClassListener($listener);
  3758. }
  3759. /**
  3760. * Remove a set of listeners from the dispatcher.
  3761. *
  3762. * @param string $event
  3763. * @return void
  3764. * @static
  3765. */
  3766. public static function forget($event){
  3767. Illuminate\Events\Dispatcher::forget($event);
  3768. }
  3769. }
  3770. class File extends Illuminate\Support\Facades\File{
  3771. /**
  3772. * Determine if a file exists.
  3773. *
  3774. * @param string $path
  3775. * @return bool
  3776. * @static
  3777. */
  3778. public static function exists($path){
  3779. return Illuminate\Filesystem\Filesystem::exists($path);
  3780. }
  3781. /**
  3782. * Get the contents of a file.
  3783. *
  3784. * @param string $path
  3785. * @return string
  3786. * @static
  3787. */
  3788. public static function get($path){
  3789. return Illuminate\Filesystem\Filesystem::get($path);
  3790. }
  3791. /**
  3792. * Get the contents of a remote file.
  3793. *
  3794. * @param string $path
  3795. * @return string
  3796. * @static
  3797. */
  3798. public static function getRemote($path){
  3799. return Illuminate\Filesystem\Filesystem::getRemote($path);
  3800. }
  3801. /**
  3802. * Get the returned value of a file.
  3803. *
  3804. * @param string $path
  3805. * @return mixed
  3806. * @static
  3807. */
  3808. public static function getRequire($path){
  3809. return Illuminate\Filesystem\Filesystem::getRequire($path);
  3810. }
  3811. /**
  3812. * Require the given file once.
  3813. *
  3814. * @param string $file
  3815. * @return void
  3816. * @static
  3817. */
  3818. public static function requireOnce($file){
  3819. Illuminate\Filesystem\Filesystem::requireOnce($file);
  3820. }
  3821. /**
  3822. * Write the contents of a file.
  3823. *
  3824. * @param string $path
  3825. * @param string $contents
  3826. * @return int
  3827. * @static
  3828. */
  3829. public static function put($path, $contents){
  3830. return Illuminate\Filesystem\Filesystem::put($path, $contents);
  3831. }
  3832. /**
  3833. * Prepend to a file.
  3834. *
  3835. * @param string $path
  3836. * @param string $data
  3837. * @return int
  3838. * @static
  3839. */
  3840. public static function prepend($path, $data){
  3841. return Illuminate\Filesystem\Filesystem::prepend($path, $data);
  3842. }
  3843. /**
  3844. * Append to a file.
  3845. *
  3846. * @param string $path
  3847. * @param string $data
  3848. * @return int
  3849. * @static
  3850. */
  3851. public static function append($path, $data){
  3852. return Illuminate\Filesystem\Filesystem::append($path, $data);
  3853. }
  3854. /**
  3855. * Delete the file at a given path.
  3856. *
  3857. * @param string $path
  3858. * @return bool
  3859. * @static
  3860. */
  3861. public static function delete($path){
  3862. return Illuminate\Filesystem\Filesystem::delete($path);
  3863. }
  3864. /**
  3865. * Move a file to a new location.
  3866. *
  3867. * @param string $path
  3868. * @param string $target
  3869. * @return bool
  3870. * @static
  3871. */
  3872. public static function move($path, $target){
  3873. return Illuminate\Filesystem\Filesystem::move($path, $target);
  3874. }
  3875. /**
  3876. * Copy a file to a new location.
  3877. *
  3878. * @param string $path
  3879. * @param string $target
  3880. * @return bool
  3881. * @static
  3882. */
  3883. public static function copy($path, $target){
  3884. return Illuminate\Filesystem\Filesystem::copy($path, $target);
  3885. }
  3886. /**
  3887. * Extract the file extension from a file path.
  3888. *
  3889. * @param string $path
  3890. * @return string
  3891. * @static
  3892. */
  3893. public static function extension($path){
  3894. return Illuminate\Filesystem\Filesystem::extension($path);
  3895. }
  3896. /**
  3897. * Get the file type of a given file.
  3898. *
  3899. * @param string $path
  3900. * @return string
  3901. * @static
  3902. */
  3903. public static function type($path){
  3904. return Illuminate\Filesystem\Filesystem::type($path);
  3905. }
  3906. /**
  3907. * Get the file size of a given file.
  3908. *
  3909. * @param string $path
  3910. * @return int
  3911. * @static
  3912. */
  3913. public static function size($path){
  3914. return Illuminate\Filesystem\Filesystem::size($path);
  3915. }
  3916. /**
  3917. * Get the file's last modification time.
  3918. *
  3919. * @param string $path
  3920. * @return int
  3921. * @static
  3922. */
  3923. public static function lastModified($path){
  3924. return Illuminate\Filesystem\Filesystem::lastModified($path);
  3925. }
  3926. /**
  3927. * Determine if the given path is a directory.
  3928. *
  3929. * @param string $directory
  3930. * @return bool
  3931. * @static
  3932. */
  3933. public static function isDirectory($directory){
  3934. return Illuminate\Filesystem\Filesystem::isDirectory($directory);
  3935. }
  3936. /**
  3937. * Determine if the given path is writable.
  3938. *
  3939. * @param string $path
  3940. * @return bool
  3941. * @static
  3942. */
  3943. public static function isWritable($path){
  3944. return Illuminate\Filesystem\Filesystem::isWritable($path);
  3945. }
  3946. /**
  3947. * Determine if the given path is a file.
  3948. *
  3949. * @param string $file
  3950. * @return bool
  3951. * @static
  3952. */
  3953. public static function isFile($file){
  3954. return Illuminate\Filesystem\Filesystem::isFile($file);
  3955. }
  3956. /**
  3957. * Find path names matching a given pattern.
  3958. *
  3959. * @param string $pattern
  3960. * @param int $flags
  3961. * @return array
  3962. * @static
  3963. */
  3964. public static function glob($pattern, $flags = 0){
  3965. return Illuminate\Filesystem\Filesystem::glob($pattern, $flags);
  3966. }
  3967. /**
  3968. * Get an array of all files in a directory.
  3969. *
  3970. * @param string $directory
  3971. * @return array
  3972. * @static
  3973. */
  3974. public static function files($directory){
  3975. return Illuminate\Filesystem\Filesystem::files($directory);
  3976. }
  3977. /**
  3978. * Get all of the files from the given directory (recursive).
  3979. *
  3980. * @param string $directory
  3981. * @return array
  3982. * @static
  3983. */
  3984. public static function allFiles($directory){
  3985. return Illuminate\Filesystem\Filesystem::allFiles($directory);
  3986. }
  3987. /**
  3988. * Get all of the directories within a given directory.
  3989. *
  3990. * @param string $directory
  3991. * @return array
  3992. * @static
  3993. */
  3994. public static function directories($directory){
  3995. return Illuminate\Filesystem\Filesystem::directories($directory);
  3996. }
  3997. /**
  3998. * Create a directory.
  3999. *
  4000. * @param string $path
  4001. * @param int $mode
  4002. * @param bool $recursive
  4003. * @return bool
  4004. * @static
  4005. */
  4006. public static function makeDirectory($path, $mode = 511, $recursive = false){
  4007. return Illuminate\Filesystem\Filesystem::makeDirectory($path, $mode, $recursive);
  4008. }
  4009. /**
  4010. * Copy a directory from one location to another.
  4011. *
  4012. * @param string $directory
  4013. * @param string $destination
  4014. * @param int $options
  4015. * @return bool
  4016. * @static
  4017. */
  4018. public static function copyDirectory($directory, $destination, $options = null){
  4019. return Illuminate\Filesystem\Filesystem::copyDirectory($directory, $destination, $options);
  4020. }
  4021. /**
  4022. * Recursively delete a directory.
  4023. *
  4024. * The directory itself may be optionally preserved.
  4025. *
  4026. * @param string $directory
  4027. * @param bool $preserve
  4028. * @return bool
  4029. * @static
  4030. */
  4031. public static function deleteDirectory($directory, $preserve = false){
  4032. return Illuminate\Filesystem\Filesystem::deleteDirectory($directory, $preserve);
  4033. }
  4034. /**
  4035. * Empty the specified directory of all files and folders.
  4036. *
  4037. * @param string $directory
  4038. * @return bool
  4039. * @static
  4040. */
  4041. public static function cleanDirectory($directory){
  4042. return Illuminate\Filesystem\Filesystem::cleanDirectory($directory);
  4043. }
  4044. }
  4045. class Form extends Illuminate\Support\Facades\Form{
  4046. /**
  4047. * Create a new form builder instance.
  4048. *
  4049. * @param \Illuminate\Routing\UrlGenerator $url
  4050. * @param \Illuminate\Html\HtmlBuilder $html
  4051. * @param string $csrfToken
  4052. * @return void
  4053. * @static
  4054. */
  4055. public static function __construct($html, $url, $csrfToken){
  4056. Illuminate\Html\FormBuilder::__construct($html, $url, $csrfToken);
  4057. }
  4058. /**
  4059. * Open up a new HTML form.
  4060. *
  4061. * @param array $options
  4062. * @return string
  4063. * @static
  4064. */
  4065. public static function open($options = array()){
  4066. return Illuminate\Html\FormBuilder::open($options);
  4067. }
  4068. /**
  4069. * Create a new model based form builder.
  4070. *
  4071. * @param mixed $model
  4072. * @param array $options
  4073. * @return string
  4074. * @static
  4075. */
  4076. public static function model($model, $options = array()){
  4077. return Illuminate\Html\FormBuilder::model($model, $options);
  4078. }
  4079. /**
  4080. * Close the current form.
  4081. *
  4082. * @return string
  4083. * @static
  4084. */
  4085. public static function close(){
  4086. return Illuminate\Html\FormBuilder::close();
  4087. }
  4088. /**
  4089. * Generate a hidden field with the current CSRF token.
  4090. *
  4091. * @return string
  4092. * @static
  4093. */
  4094. public static function token(){
  4095. return Illuminate\Html\FormBuilder::token();
  4096. }
  4097. /**
  4098. * Create a form label element.
  4099. *
  4100. * @param string $name
  4101. * @param string $value
  4102. * @param array $options
  4103. * @return string
  4104. * @static
  4105. */
  4106. public static function label($name, $value = null, $options = array()){
  4107. return Illuminate\Html\FormBuilder::label($name, $value, $options);
  4108. }
  4109. /**
  4110. * Create a form input field.
  4111. *
  4112. * @param string $type
  4113. * @param string $name
  4114. * @param string $value
  4115. * @param array $options
  4116. * @return string
  4117. * @static
  4118. */
  4119. public static function input($type, $name, $value = null, $options = array()){
  4120. return Illuminate\Html\FormBuilder::input($type, $name, $value, $options);
  4121. }
  4122. /**
  4123. * Create a text input field.
  4124. *
  4125. * @param string $name
  4126. * @param string $value
  4127. * @param array $options
  4128. * @return string
  4129. * @static
  4130. */
  4131. public static function text($name, $value = null, $options = array()){
  4132. return Illuminate\Html\FormBuilder::text($name, $value, $options);
  4133. }
  4134. /**
  4135. * Create a password input field.
  4136. *
  4137. * @param string $name
  4138. * @param array $options
  4139. * @return string
  4140. * @static
  4141. */
  4142. public static function password($name, $options = array()){
  4143. return Illuminate\Html\FormBuilder::password($name, $options);
  4144. }
  4145. /**
  4146. * Create a hidden input field.
  4147. *
  4148. * @param string $name
  4149. * @param string $value
  4150. * @param array $options
  4151. * @return string
  4152. * @static
  4153. */
  4154. public static function hidden($name, $value = null, $options = array()){
  4155. return Illuminate\Html\FormBuilder::hidden($name, $value, $options);
  4156. }
  4157. /**
  4158. * Create an e-mail input field.
  4159. *
  4160. * @param string $name
  4161. * @param string $value
  4162. * @param array $options
  4163. * @return string
  4164. * @static
  4165. */
  4166. public static function email($name, $value = null, $options = array()){
  4167. return Illuminate\Html\FormBuilder::email($name, $value, $options);
  4168. }
  4169. /**
  4170. * Create a url input field.
  4171. *
  4172. * @param string $name
  4173. * @param string $value
  4174. * @param array $options
  4175. * @return string
  4176. * @static
  4177. */
  4178. public static function url($name, $value = null, $options = array()){
  4179. return Illuminate\Html\FormBuilder::url($name, $value, $options);
  4180. }
  4181. /**
  4182. * Create a file input field.
  4183. *
  4184. * @param string $name
  4185. * @param array $options
  4186. * @return string
  4187. * @static
  4188. */
  4189. public static function file($name, $options = array()){
  4190. return Illuminate\Html\FormBuilder::file($name, $options);
  4191. }
  4192. /**
  4193. * Create a textarea input field.
  4194. *
  4195. * @param string $name
  4196. * @param string $value
  4197. * @param array $options
  4198. * @return string
  4199. * @static
  4200. */
  4201. public static function textarea($name, $value = null, $options = array()){
  4202. return Illuminate\Html\FormBuilder::textarea($name, $value, $options);
  4203. }
  4204. /**
  4205. * Create a select box field.
  4206. *
  4207. * @param string $name
  4208. * @param array $list
  4209. * @param string $selected
  4210. * @param array $options
  4211. * @return string
  4212. * @static
  4213. */
  4214. public static function select($name, $list = array(), $selected = null, $options = array()){
  4215. return Illuminate\Html\FormBuilder::select($name, $list, $selected, $options);
  4216. }
  4217. /**
  4218. * Create a select range field.
  4219. *
  4220. * @param string $name
  4221. * @param string $begin
  4222. * @param string $end
  4223. * @param string $selected
  4224. * @param array $options
  4225. * @return string
  4226. * @static
  4227. */
  4228. public static function selectRange($name, $begin, $end, $selected = null, $options = array()){
  4229. return Illuminate\Html\FormBuilder::selectRange($name, $begin, $end, $selected, $options);
  4230. }
  4231. /**
  4232. * Create a select year field.
  4233. *
  4234. * @param string $name
  4235. * @param string $begin
  4236. * @param string $end
  4237. * @param string $selected
  4238. * @param array $options
  4239. * @return string
  4240. * @static
  4241. */
  4242. public static function selectYear(){
  4243. return Illuminate\Html\FormBuilder::selectYear();
  4244. }
  4245. /**
  4246. * Create a select month field.
  4247. *
  4248. * @param string $name
  4249. * @param string $selected
  4250. * @param array $options
  4251. * @return string
  4252. * @static
  4253. */
  4254. public static function selectMonth($name, $selected = null, $options = array()){
  4255. return Illuminate\Html\FormBuilder::selectMonth($name, $selected, $options);
  4256. }
  4257. /**
  4258. * Create a checkbox input field.
  4259. *
  4260. * @param string $name
  4261. * @param mixed $value
  4262. * @param bool $checked
  4263. * @param array $options
  4264. * @return string
  4265. * @static
  4266. */
  4267. public static function checkbox($name, $value = 1, $checked = null, $options = array()){
  4268. return Illuminate\Html\FormBuilder::checkbox($name, $value, $checked, $options);
  4269. }
  4270. /**
  4271. * Create a radio button input field.
  4272. *
  4273. * @param string $name
  4274. * @param mixed $value
  4275. * @param bool $checked
  4276. * @param array $options
  4277. * @return string
  4278. * @static
  4279. */
  4280. public static function radio($name, $value = null, $checked = null, $options = array()){
  4281. return Illuminate\Html\FormBuilder::radio($name, $value, $checked, $options);
  4282. }
  4283. /**
  4284. * Create a HTML reset input element.
  4285. *
  4286. * @param string $value
  4287. * @param array $attributes
  4288. * @return string
  4289. * @static
  4290. */
  4291. public static function reset($value, $attributes = array()){
  4292. return Illuminate\Html\FormBuilder::reset($value, $attributes);
  4293. }
  4294. /**
  4295. * Create a HTML image input element.
  4296. *
  4297. * @param string $url
  4298. * @param string $name
  4299. * @param array $attributes
  4300. * @return string
  4301. * @static
  4302. */
  4303. public static function image($url, $name = null, $attributes = array()){
  4304. return Illuminate\Html\FormBuilder::image($url, $name, $attributes);
  4305. }
  4306. /**
  4307. * Create a submit button element.
  4308. *
  4309. * @param string $value
  4310. * @param array $options
  4311. * @return string
  4312. * @static
  4313. */
  4314. public static function submit($value = null, $options = array()){
  4315. return Illuminate\Html\FormBuilder::submit($value, $options);
  4316. }
  4317. /**
  4318. * Create a button element.
  4319. *
  4320. * @param string $value
  4321. * @param array $options
  4322. * @return string
  4323. * @static
  4324. */
  4325. public static function button($value = null, $options = array()){
  4326. return Illuminate\Html\FormBuilder::button($value, $options);
  4327. }
  4328. /**
  4329. * Register a custom form macro.
  4330. *
  4331. * @param string $name
  4332. * @param callable $macro
  4333. * @return void
  4334. * @static
  4335. */
  4336. public static function macro($name, $macro){
  4337. Illuminate\Html\FormBuilder::macro($name, $macro);
  4338. }
  4339. /**
  4340. * Get the value that should be assigned to the field.
  4341. *
  4342. * @param string $name
  4343. * @param string $value
  4344. * @return string
  4345. * @static
  4346. */
  4347. public static function getValueAttribute($name, $value = null){
  4348. return Illuminate\Html\FormBuilder::getValueAttribute($name, $value);
  4349. }
  4350. /**
  4351. * Get a value from the session's old input.
  4352. *
  4353. * @param string $name
  4354. * @return string
  4355. * @static
  4356. */
  4357. public static function old($name){
  4358. return Illuminate\Html\FormBuilder::old($name);
  4359. }
  4360. /**
  4361. * Determine if the old input is empty.
  4362. *
  4363. * @return bool
  4364. * @static
  4365. */
  4366. public static function oldInputIsEmpty(){
  4367. return Illuminate\Html\FormBuilder::oldInputIsEmpty();
  4368. }
  4369. /**
  4370. * Get the session store implementation.
  4371. *
  4372. * @return \Illuminate\Session\Store $session
  4373. * @static
  4374. */
  4375. public static function getSessionStore(){
  4376. return Illuminate\Html\FormBuilder::getSessionStore();
  4377. }
  4378. /**
  4379. * Set the session store implementation.
  4380. *
  4381. * @param \Illuminate\Session\Store $session
  4382. * @return \Illuminate\Html\FormBuilder
  4383. * @static
  4384. */
  4385. public static function setSessionStore($session){
  4386. return Illuminate\Html\FormBuilder::setSessionStore($session);
  4387. }
  4388. /**
  4389. * Dynamically handle calls to the form builder.
  4390. *
  4391. * @param string $method
  4392. * @param array $parameters
  4393. * @return mixed
  4394. * @static
  4395. */
  4396. public static function __call($method, $parameters){
  4397. return Illuminate\Html\FormBuilder::__call($method, $parameters);
  4398. }
  4399. }
  4400. class Hash extends Illuminate\Support\Facades\Hash{
  4401. /**
  4402. * Hash the given value.
  4403. *
  4404. * @param string $value
  4405. * @param array $options
  4406. * @return string
  4407. * @static
  4408. */
  4409. public static function make($value, $options = array()){
  4410. return Illuminate\Hashing\BcryptHasher::make($value, $options);
  4411. }
  4412. /**
  4413. * Check the given plain value against a hash.
  4414. *
  4415. * @param string $value
  4416. * @param string $hashedValue
  4417. * @param array $options
  4418. * @return bool
  4419. * @static
  4420. */
  4421. public static function check($value, $hashedValue, $options = array()){
  4422. return Illuminate\Hashing\BcryptHasher::check($value, $hashedValue, $options);
  4423. }
  4424. /**
  4425. * Check if the given hash has been hashed using the given options.
  4426. *
  4427. * @param string $hashedValue
  4428. * @param array $options
  4429. * @return bool
  4430. * @static
  4431. */
  4432. public static function needsRehash($hashedValue, $options = array()){
  4433. return Illuminate\Hashing\BcryptHasher::needsRehash($hashedValue, $options);
  4434. }
  4435. }
  4436. class HTML extends Illuminate\Support\Facades\HTML{
  4437. /**
  4438. * Create a new HTML builder instance.
  4439. *
  4440. * @param \Illuminate\Routing\UrlGenerator $url
  4441. * @return void
  4442. * @static
  4443. */
  4444. public static function __construct($url = null){
  4445. Illuminate\Html\HtmlBuilder::__construct($url);
  4446. }
  4447. /**
  4448. * Register a custom HTML macro.
  4449. *
  4450. * @param string $name
  4451. * @param callable $macro
  4452. * @return void
  4453. * @static
  4454. */
  4455. public static function macro($name, $macro){
  4456. Illuminate\Html\HtmlBuilder::macro($name, $macro);
  4457. }
  4458. /**
  4459. * Convert an HTML string to entities.
  4460. *
  4461. * @param string $value
  4462. * @return string
  4463. * @static
  4464. */
  4465. public static function entities($value){
  4466. return Illuminate\Html\HtmlBuilder::entities($value);
  4467. }
  4468. /**
  4469. * Convert entities to HTML characters.
  4470. *
  4471. * @param string $value
  4472. * @return string
  4473. * @static
  4474. */
  4475. public static function decode($value){
  4476. return Illuminate\Html\HtmlBuilder::decode($value);
  4477. }
  4478. /**
  4479. * Generate a link to a JavaScript file.
  4480. *
  4481. * @param string $url
  4482. * @param array $attributes
  4483. * @return string
  4484. * @static
  4485. */
  4486. public static function script($url, $attributes = array()){
  4487. return Illuminate\Html\HtmlBuilder::script($url, $attributes);
  4488. }
  4489. /**
  4490. * Generate a link to a CSS file.
  4491. *
  4492. * @param string $url
  4493. * @param array $attributes
  4494. * @return string
  4495. * @static
  4496. */
  4497. public static function style($url, $attributes = array()){
  4498. return Illuminate\Html\HtmlBuilder::style($url, $attributes);
  4499. }
  4500. /**
  4501. * Generate an HTML image element.
  4502. *
  4503. * @param string $url
  4504. * @param string $alt
  4505. * @param array $attributes
  4506. * @return string
  4507. * @static
  4508. */
  4509. public static function image($url, $alt = null, $attributes = array()){
  4510. return Illuminate\Html\HtmlBuilder::image($url, $alt, $attributes);
  4511. }
  4512. /**
  4513. * Generate a HTML link.
  4514. *
  4515. * @param string $url
  4516. * @param string $title
  4517. * @param array $attributes
  4518. * @param bool $secure
  4519. * @return string
  4520. * @static
  4521. */
  4522. public static function link($url, $title = null, $attributes = array(), $secure = null){
  4523. return Illuminate\Html\HtmlBuilder::link($url, $title, $attributes, $secure);
  4524. }
  4525. /**
  4526. * Generate a HTTPS HTML link.
  4527. *
  4528. * @param string $url
  4529. * @param string $title
  4530. * @param array $attributes
  4531. * @return string
  4532. * @static
  4533. */
  4534. public static function secureLink($url, $title = null, $attributes = array()){
  4535. return Illuminate\Html\HtmlBuilder::secureLink($url, $title, $attributes);
  4536. }
  4537. /**
  4538. * Generate a HTML link to an asset.
  4539. *
  4540. * @param string $url
  4541. * @param string $title
  4542. * @param array $attributes
  4543. * @param bool $secure
  4544. * @return string
  4545. * @static
  4546. */
  4547. public static function linkAsset($url, $title = null, $attributes = array(), $secure = null){
  4548. return Illuminate\Html\HtmlBuilder::linkAsset($url, $title, $attributes, $secure);
  4549. }
  4550. /**
  4551. * Generate a HTTPS HTML link to an asset.
  4552. *
  4553. * @param string $url
  4554. * @param string $title
  4555. * @param array $attributes
  4556. * @return string
  4557. * @static
  4558. */
  4559. public static function linkSecureAsset($url, $title = null, $attributes = array()){
  4560. return Illuminate\Html\HtmlBuilder::linkSecureAsset($url, $title, $attributes);
  4561. }
  4562. /**
  4563. * Generate a HTML link to a named route.
  4564. *
  4565. * @param string $name
  4566. * @param string $title
  4567. * @param array $parameters
  4568. * @param array $attributes
  4569. * @return string
  4570. * @static
  4571. */
  4572. public static function linkRoute($name, $title = null, $parameters = array(), $attributes = array()){
  4573. return Illuminate\Html\HtmlBuilder::linkRoute($name, $title, $parameters, $attributes);
  4574. }
  4575. /**
  4576. * Generate a HTML link to a controller action.
  4577. *
  4578. * @param string $action
  4579. * @param string $title
  4580. * @param array $parameters
  4581. * @param array $attributes
  4582. * @return string
  4583. * @static
  4584. */
  4585. public static function linkAction($action, $title = null, $parameters = array(), $attributes = array()){
  4586. return Illuminate\Html\HtmlBuilder::linkAction($action, $title, $parameters, $attributes);
  4587. }
  4588. /**
  4589. * Generate a HTML link to an email address.
  4590. *
  4591. * @param string $email
  4592. * @param string $title
  4593. * @param array $attributes
  4594. * @return string
  4595. * @static
  4596. */
  4597. public static function mailto($email, $title = null, $attributes = array()){
  4598. return Illuminate\Html\HtmlBuilder::mailto($email, $title, $attributes);
  4599. }
  4600. /**
  4601. * Obfuscate an e-mail address to prevent spam-bots from sniffing it.
  4602. *
  4603. * @param string $email
  4604. * @return string
  4605. * @static
  4606. */
  4607. public static function email($email){
  4608. return Illuminate\Html\HtmlBuilder::email($email);
  4609. }
  4610. /**
  4611. * Generate an ordered list of items.
  4612. *
  4613. * @param array $list
  4614. * @param array $attributes
  4615. * @return string
  4616. * @static
  4617. */
  4618. public static function ol($list, $attributes = array()){
  4619. return Illuminate\Html\HtmlBuilder::ol($list, $attributes);
  4620. }
  4621. /**
  4622. * Generate an un-ordered list of items.
  4623. *
  4624. * @param array $list
  4625. * @param array $attributes
  4626. * @return string
  4627. * @static
  4628. */
  4629. public static function ul($list, $attributes = array()){
  4630. return Illuminate\Html\HtmlBuilder::ul($list, $attributes);
  4631. }
  4632. /**
  4633. * Build an HTML attribute string from an array.
  4634. *
  4635. * @param array $attributes
  4636. * @return string
  4637. * @static
  4638. */
  4639. public static function attributes($attributes){
  4640. return Illuminate\Html\HtmlBuilder::attributes($attributes);
  4641. }
  4642. /**
  4643. * Obfuscate a string to prevent spam-bots from sniffing it.
  4644. *
  4645. * @param string $value
  4646. * @return string
  4647. * @static
  4648. */
  4649. public static function obfuscate($value){
  4650. return Illuminate\Html\HtmlBuilder::obfuscate($value);
  4651. }
  4652. /**
  4653. * Dynamically handle calls to the html class.
  4654. *
  4655. * @param string $method
  4656. * @param array $parameters
  4657. * @return mixed
  4658. * @static
  4659. */
  4660. public static function __call($method, $parameters){
  4661. return Illuminate\Html\HtmlBuilder::__call($method, $parameters);
  4662. }
  4663. }
  4664. class Input extends Illuminate\Support\Facades\Input{
  4665. /**
  4666. * Return the Request instance.
  4667. *
  4668. * @return \Illuminate\Http\Request
  4669. * @static
  4670. */
  4671. public static function instance(){
  4672. return Illuminate\Http\Request::instance();
  4673. }
  4674. /**
  4675. * Get the root URL for the application.
  4676. *
  4677. * @return string
  4678. * @static
  4679. */
  4680. public static function root(){
  4681. return Illuminate\Http\Request::root();
  4682. }
  4683. /**
  4684. * Get the URL (no query string) for the request.
  4685. *
  4686. * @return string
  4687. * @static
  4688. */
  4689. public static function url(){
  4690. return Illuminate\Http\Request::url();
  4691. }
  4692. /**
  4693. * Get the full URL for the request.
  4694. *
  4695. * @return string
  4696. * @static
  4697. */
  4698. public static function fullUrl(){
  4699. return Illuminate\Http\Request::fullUrl();
  4700. }
  4701. /**
  4702. * Get the current path info for the request.
  4703. *
  4704. * @return string
  4705. * @static
  4706. */
  4707. public static function path(){
  4708. return Illuminate\Http\Request::path();
  4709. }
  4710. /**
  4711. * Get a segment from the URI (1 based index).
  4712. *
  4713. * @param string $index
  4714. * @param mixed $default
  4715. * @return string
  4716. * @static
  4717. */
  4718. public static function segment($index, $default = null){
  4719. return Illuminate\Http\Request::segment($index, $default);
  4720. }
  4721. /**
  4722. * Get all of the segments for the request path.
  4723. *
  4724. * @return array
  4725. * @static
  4726. */
  4727. public static function segments(){
  4728. return Illuminate\Http\Request::segments();
  4729. }
  4730. /**
  4731. * Determine if the current request URI matches a pattern.
  4732. *
  4733. * @param string $pattern
  4734. * @return bool
  4735. * @static
  4736. */
  4737. public static function is($pattern){
  4738. return Illuminate\Http\Request::is($pattern);
  4739. }
  4740. /**
  4741. * Determine if the request is the result of an AJAX call.
  4742. *
  4743. * @return bool
  4744. * @static
  4745. */
  4746. public static function ajax(){
  4747. return Illuminate\Http\Request::ajax();
  4748. }
  4749. /**
  4750. * Determine if the request is over HTTPS.
  4751. *
  4752. * @return bool
  4753. * @static
  4754. */
  4755. public static function secure(){
  4756. return Illuminate\Http\Request::secure();
  4757. }
  4758. /**
  4759. * Determine if the request contains a given input item.
  4760. *
  4761. * @param string|array $key
  4762. * @return bool
  4763. * @static
  4764. */
  4765. public static function has($key){
  4766. return Illuminate\Http\Request::has($key);
  4767. }
  4768. /**
  4769. * Get all of the input and files for the request.
  4770. *
  4771. * @return array
  4772. * @static
  4773. */
  4774. public static function all(){
  4775. return Illuminate\Http\Request::all();
  4776. }
  4777. /**
  4778. * Retrieve an input item from the request.
  4779. *
  4780. * @param string $key
  4781. * @param mixed $default
  4782. * @return string
  4783. * @static
  4784. */
  4785. public static function input($key = null, $default = null){
  4786. return Illuminate\Http\Request::input($key, $default);
  4787. }
  4788. /**
  4789. * Get a subset of the items from the input data.
  4790. *
  4791. * @param array $keys
  4792. * @return array
  4793. * @static
  4794. */
  4795. public static function only($keys){
  4796. return Illuminate\Http\Request::only($keys);
  4797. }
  4798. /**
  4799. * Get all of the input except for a specified array of items.
  4800. *
  4801. * @param array $keys
  4802. * @return array
  4803. * @static
  4804. */
  4805. public static function except($keys){
  4806. return Illuminate\Http\Request::except($keys);
  4807. }
  4808. /**
  4809. * Retrieve a query string item from the request.
  4810. *
  4811. * @param string $key
  4812. * @param mixed $default
  4813. * @return string
  4814. * @static
  4815. */
  4816. public static function query($key = null, $default = null){
  4817. return Illuminate\Http\Request::query($key, $default);
  4818. }
  4819. /**
  4820. * Retrieve a cookie from the request.
  4821. *
  4822. * @param string $key
  4823. * @param mixed $default
  4824. * @return string
  4825. * @static
  4826. */
  4827. public static function cookie($key = null, $default = null){
  4828. return Illuminate\Http\Request::cookie($key, $default);
  4829. }
  4830. /**
  4831. * Retrieve a file from the request.
  4832. *
  4833. * @param string $key
  4834. * @param mixed $default
  4835. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  4836. * @static
  4837. */
  4838. public static function file($key = null, $default = null){
  4839. return Illuminate\Http\Request::file($key, $default);
  4840. }
  4841. /**
  4842. * Determine if the uploaded data contains a file.
  4843. *
  4844. * @param string $key
  4845. * @return bool
  4846. * @static
  4847. */
  4848. public static function hasFile($key){
  4849. return Illuminate\Http\Request::hasFile($key);
  4850. }
  4851. /**
  4852. * Retrieve a header from the request.
  4853. *
  4854. * @param string $key
  4855. * @param mixed $default
  4856. * @return string
  4857. * @static
  4858. */
  4859. public static function header($key = null, $default = null){
  4860. return Illuminate\Http\Request::header($key, $default);
  4861. }
  4862. /**
  4863. * Retrieve a server variable from the request.
  4864. *
  4865. * @param string $key
  4866. * @param mixed $default
  4867. * @return string
  4868. * @static
  4869. */
  4870. public static function server($key = null, $default = null){
  4871. return Illuminate\Http\Request::server($key, $default);
  4872. }
  4873. /**
  4874. * Retrieve an old input item.
  4875. *
  4876. * @param string $key
  4877. * @param mixed $default
  4878. * @return mixed
  4879. * @static
  4880. */
  4881. public static function old($key = null, $default = null){
  4882. return Illuminate\Http\Request::old($key, $default);
  4883. }
  4884. /**
  4885. * Flash the input for the current request to the session.
  4886. *
  4887. * @param string $filter
  4888. * @param array $keys
  4889. * @return void
  4890. * @static
  4891. */
  4892. public static function flash($filter = null, $keys = array()){
  4893. Illuminate\Http\Request::flash($filter, $keys);
  4894. }
  4895. /**
  4896. * Flash only some of the input to the session.
  4897. *
  4898. * @param dynamic string
  4899. * @return void
  4900. * @static
  4901. */
  4902. public static function flashOnly($keys){
  4903. Illuminate\Http\Request::flashOnly($keys);
  4904. }
  4905. /**
  4906. * Flash only some of the input to the session.
  4907. *
  4908. * @param dynamic string
  4909. * @return void
  4910. * @static
  4911. */
  4912. public static function flashExcept($keys){
  4913. Illuminate\Http\Request::flashExcept($keys);
  4914. }
  4915. /**
  4916. * Flush all of the old input from the session.
  4917. *
  4918. * @return void
  4919. * @static
  4920. */
  4921. public static function flush(){
  4922. Illuminate\Http\Request::flush();
  4923. }
  4924. /**
  4925. * Merge new input into the current request's input array.
  4926. *
  4927. * @param array $input
  4928. * @return void
  4929. * @static
  4930. */
  4931. public static function merge($input){
  4932. Illuminate\Http\Request::merge($input);
  4933. }
  4934. /**
  4935. * Replace the input for the current request.
  4936. *
  4937. * @param array $input
  4938. * @return void
  4939. * @static
  4940. */
  4941. public static function replace($input){
  4942. Illuminate\Http\Request::replace($input);
  4943. }
  4944. /**
  4945. * Get the JSON payload for the request.
  4946. *
  4947. * @param string $key
  4948. * @param mixed $default
  4949. * @return mixed
  4950. * @static
  4951. */
  4952. public static function json($key = null, $default = null){
  4953. return Illuminate\Http\Request::json($key, $default);
  4954. }
  4955. /**
  4956. * Determine if the request is sending JSON.
  4957. *
  4958. * @return bool
  4959. * @static
  4960. */
  4961. public static function isJson(){
  4962. return Illuminate\Http\Request::isJson();
  4963. }
  4964. /**
  4965. * Determine if the current request is asking for JSON in return.
  4966. *
  4967. * @return bool
  4968. * @static
  4969. */
  4970. public static function wantsJson(){
  4971. return Illuminate\Http\Request::wantsJson();
  4972. }
  4973. /**
  4974. * Get the data format expected in the response.
  4975. *
  4976. * @return string
  4977. * @static
  4978. */
  4979. public static function format($default = 'html'){
  4980. return Illuminate\Http\Request::format($default);
  4981. }
  4982. /**
  4983. * Get the Illuminate session store implementation.
  4984. *
  4985. * @return \Illuminate\Session\Store
  4986. * @static
  4987. */
  4988. public static function getSessionStore(){
  4989. return Illuminate\Http\Request::getSessionStore();
  4990. }
  4991. /**
  4992. * Set the Illuminate session store implementation.
  4993. *
  4994. * @param \Illuminate\Session\Store $session
  4995. * @return void
  4996. * @static
  4997. */
  4998. public static function setSessionStore($session){
  4999. Illuminate\Http\Request::setSessionStore($session);
  5000. }
  5001. /**
  5002. * Determine if the session store has been set.
  5003. *
  5004. * @return bool
  5005. * @static
  5006. */
  5007. public static function hasSessionStore(){
  5008. return Illuminate\Http\Request::hasSessionStore();
  5009. }
  5010. /**
  5011. * Constructor.
  5012. *
  5013. * @param array $query The GET parameters
  5014. * @param array $request The POST parameters
  5015. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  5016. * @param array $cookies The COOKIE parameters
  5017. * @param array $files The FILES parameters
  5018. * @param array $server The SERVER parameters
  5019. * @param string $content The raw body data
  5020. * @api
  5021. * @static
  5022. */
  5023. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  5024. //Method inherited from Symfony\Component\HttpFoundation\Request
  5025. Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  5026. }
  5027. /**
  5028. * Sets the parameters for this request.
  5029. *
  5030. * This method also re-initializes all properties.
  5031. *
  5032. * @param array $query The GET parameters
  5033. * @param array $request The POST parameters
  5034. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  5035. * @param array $cookies The COOKIE parameters
  5036. * @param array $files The FILES parameters
  5037. * @param array $server The SERVER parameters
  5038. * @param string $content The raw body data
  5039. * @api
  5040. * @static
  5041. */
  5042. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  5043. //Method inherited from Symfony\Component\HttpFoundation\Request
  5044. Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  5045. }
  5046. /**
  5047. * Creates a new request with values from PHP's super globals.
  5048. *
  5049. * @return Request A new request
  5050. * @api
  5051. * @static
  5052. */
  5053. public static function createFromGlobals(){
  5054. //Method inherited from Symfony\Component\HttpFoundation\Request
  5055. return Illuminate\Http\Request::createFromGlobals();
  5056. }
  5057. /**
  5058. * Creates a Request based on a given URI and configuration.
  5059. *
  5060. * The information contained in the URI always take precedence
  5061. * over the other information (server and parameters).
  5062. *
  5063. * @param string $uri The URI
  5064. * @param string $method The HTTP method
  5065. * @param array $parameters The query (GET) or request (POST) parameters
  5066. * @param array $cookies The request cookies ($_COOKIE)
  5067. * @param array $files The request files ($_FILES)
  5068. * @param array $server The server parameters ($_SERVER)
  5069. * @param string $content The raw body data
  5070. * @return Request A Request instance
  5071. * @api
  5072. * @static
  5073. */
  5074. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  5075. //Method inherited from Symfony\Component\HttpFoundation\Request
  5076. return Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  5077. }
  5078. /**
  5079. * Clones a request and overrides some of its parameters.
  5080. *
  5081. * @param array $query The GET parameters
  5082. * @param array $request The POST parameters
  5083. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  5084. * @param array $cookies The COOKIE parameters
  5085. * @param array $files The FILES parameters
  5086. * @param array $server The SERVER parameters
  5087. * @return Request The duplicated request
  5088. * @api
  5089. * @static
  5090. */
  5091. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  5092. //Method inherited from Symfony\Component\HttpFoundation\Request
  5093. return Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  5094. }
  5095. /**
  5096. * Returns the request as a string.
  5097. *
  5098. * @return string The request
  5099. * @static
  5100. */
  5101. public static function __toString(){
  5102. //Method inherited from Symfony\Component\HttpFoundation\Request
  5103. return Illuminate\Http\Request::__toString();
  5104. }
  5105. /**
  5106. * Overrides the PHP global variables according to this request instance.
  5107. *
  5108. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  5109. * $_FILES is never override, see rfc1867
  5110. *
  5111. * @api
  5112. * @static
  5113. */
  5114. public static function overrideGlobals(){
  5115. //Method inherited from Symfony\Component\HttpFoundation\Request
  5116. Illuminate\Http\Request::overrideGlobals();
  5117. }
  5118. /**
  5119. * Sets a list of trusted proxies.
  5120. *
  5121. * You should only list the reverse proxies that you manage directly.
  5122. *
  5123. * @param array $proxies A list of trusted proxies
  5124. * @api
  5125. * @static
  5126. */
  5127. public static function setTrustedProxies($proxies){
  5128. //Method inherited from Symfony\Component\HttpFoundation\Request
  5129. Illuminate\Http\Request::setTrustedProxies($proxies);
  5130. }
  5131. /**
  5132. * Gets the list of trusted proxies.
  5133. *
  5134. * @return array An array of trusted proxies.
  5135. * @static
  5136. */
  5137. public static function getTrustedProxies(){
  5138. //Method inherited from Symfony\Component\HttpFoundation\Request
  5139. return Illuminate\Http\Request::getTrustedProxies();
  5140. }
  5141. /**
  5142. * Sets a list of trusted host patterns.
  5143. *
  5144. * You should only list the hosts you manage using regexs.
  5145. *
  5146. * @param array $hostPatterns A list of trusted host patterns
  5147. * @static
  5148. */
  5149. public static function setTrustedHosts($hostPatterns){
  5150. //Method inherited from Symfony\Component\HttpFoundation\Request
  5151. Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  5152. }
  5153. /**
  5154. * Gets the list of trusted host patterns.
  5155. *
  5156. * @return array An array of trusted host patterns.
  5157. * @static
  5158. */
  5159. public static function getTrustedHosts(){
  5160. //Method inherited from Symfony\Component\HttpFoundation\Request
  5161. return Illuminate\Http\Request::getTrustedHosts();
  5162. }
  5163. /**
  5164. * Sets the name for trusted headers.
  5165. *
  5166. * The following header keys are supported:
  5167. *
  5168. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  5169. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  5170. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  5171. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  5172. *
  5173. * Setting an empty value allows to disable the trusted header for the given key.
  5174. *
  5175. * @param string $key The header key
  5176. * @param string $value The header name
  5177. * @throws \InvalidArgumentException
  5178. * @static
  5179. */
  5180. public static function setTrustedHeaderName($key, $value){
  5181. //Method inherited from Symfony\Component\HttpFoundation\Request
  5182. Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  5183. }
  5184. /**
  5185. * Gets the trusted proxy header name.
  5186. *
  5187. * @param string $key The header key
  5188. * @return string The header name
  5189. * @throws \InvalidArgumentException
  5190. * @static
  5191. */
  5192. public static function getTrustedHeaderName($key){
  5193. //Method inherited from Symfony\Component\HttpFoundation\Request
  5194. return Illuminate\Http\Request::getTrustedHeaderName($key);
  5195. }
  5196. /**
  5197. * Normalizes a query string.
  5198. *
  5199. * It builds a normalized query string, where keys/value pairs are alphabetized,
  5200. * have consistent escaping and unneeded delimiters are removed.
  5201. *
  5202. * @param string $qs Query string
  5203. * @return string A normalized query string for the Request
  5204. * @static
  5205. */
  5206. public static function normalizeQueryString($qs){
  5207. //Method inherited from Symfony\Component\HttpFoundation\Request
  5208. return Illuminate\Http\Request::normalizeQueryString($qs);
  5209. }
  5210. /**
  5211. * Enables support for the _method request parameter to determine the intended HTTP method.
  5212. *
  5213. * Be warned that enabling this feature might lead to CSRF issues in your code.
  5214. * Check that you are using CSRF tokens when required.
  5215. *
  5216. * The HTTP method can only be overridden when the real HTTP method is POST.
  5217. *
  5218. * @static
  5219. */
  5220. public static function enableHttpMethodParameterOverride(){
  5221. //Method inherited from Symfony\Component\HttpFoundation\Request
  5222. Illuminate\Http\Request::enableHttpMethodParameterOverride();
  5223. }
  5224. /**
  5225. * Checks whether support for the _method request parameter is enabled.
  5226. *
  5227. * @return Boolean True when the _method request parameter is enabled, false otherwise
  5228. * @static
  5229. */
  5230. public static function getHttpMethodParameterOverride(){
  5231. //Method inherited from Symfony\Component\HttpFoundation\Request
  5232. return Illuminate\Http\Request::getHttpMethodParameterOverride();
  5233. }
  5234. /**
  5235. * Gets a "parameter" value.
  5236. *
  5237. * This method is mainly useful for libraries that want to provide some flexibility.
  5238. *
  5239. * Order of precedence: GET, PATH, POST
  5240. *
  5241. * Avoid using this method in controllers:
  5242. *
  5243. * * slow
  5244. * * prefer to get from a "named" source
  5245. *
  5246. * It is better to explicitly get request parameters from the appropriate
  5247. * public property instead (query, attributes, request).
  5248. *
  5249. * @param string $key the key
  5250. * @param mixed $default the default value
  5251. * @param Boolean $deep is parameter deep in multidimensional array
  5252. * @return mixed
  5253. * @static
  5254. */
  5255. public static function get($key, $default = null, $deep = false){
  5256. //Method inherited from Symfony\Component\HttpFoundation\Request
  5257. return Illuminate\Http\Request::get($key, $default, $deep);
  5258. }
  5259. /**
  5260. * Gets the Session.
  5261. *
  5262. * @return SessionInterface|null The session
  5263. * @api
  5264. * @static
  5265. */
  5266. public static function getSession(){
  5267. //Method inherited from Symfony\Component\HttpFoundation\Request
  5268. return Illuminate\Http\Request::getSession();
  5269. }
  5270. /**
  5271. * Whether the request contains a Session which was started in one of the
  5272. * previous requests.
  5273. *
  5274. * @return Boolean
  5275. * @api
  5276. * @static
  5277. */
  5278. public static function hasPreviousSession(){
  5279. //Method inherited from Symfony\Component\HttpFoundation\Request
  5280. return Illuminate\Http\Request::hasPreviousSession();
  5281. }
  5282. /**
  5283. * Whether the request contains a Session object.
  5284. *
  5285. * This method does not give any information about the state of the session object,
  5286. * like whether the session is started or not. It is just a way to check if this Request
  5287. * is associated with a Session instance.
  5288. *
  5289. * @return Boolean true when the Request contains a Session object, false otherwise
  5290. * @api
  5291. * @static
  5292. */
  5293. public static function hasSession(){
  5294. //Method inherited from Symfony\Component\HttpFoundation\Request
  5295. return Illuminate\Http\Request::hasSession();
  5296. }
  5297. /**
  5298. * Sets the Session.
  5299. *
  5300. * @param SessionInterface $session The Session
  5301. * @api
  5302. * @static
  5303. */
  5304. public static function setSession($session){
  5305. //Method inherited from Symfony\Component\HttpFoundation\Request
  5306. Illuminate\Http\Request::setSession($session);
  5307. }
  5308. /**
  5309. * Returns the client IP addresses.
  5310. *
  5311. * The least trusted IP address is first, and the most trusted one last.
  5312. * The "real" client IP address is the first one, but this is also the
  5313. * least trusted one.
  5314. *
  5315. * Use this method carefully; you should use getClientIp() instead.
  5316. *
  5317. * @return array The client IP addresses
  5318. * @see getClientIp()
  5319. * @static
  5320. */
  5321. public static function getClientIps(){
  5322. //Method inherited from Symfony\Component\HttpFoundation\Request
  5323. return Illuminate\Http\Request::getClientIps();
  5324. }
  5325. /**
  5326. * Returns the client IP address.
  5327. *
  5328. * This method can read the client IP address from the "X-Forwarded-For" header
  5329. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  5330. * header value is a comma+space separated list of IP addresses, the left-most
  5331. * being the original client, and each successive proxy that passed the request
  5332. * adding the IP address where it received the request from.
  5333. *
  5334. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  5335. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  5336. * the "client-ip" key.
  5337. *
  5338. * @return string The client IP address
  5339. * @see getClientIps()
  5340. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  5341. * @api
  5342. * @static
  5343. */
  5344. public static function getClientIp(){
  5345. //Method inherited from Symfony\Component\HttpFoundation\Request
  5346. return Illuminate\Http\Request::getClientIp();
  5347. }
  5348. /**
  5349. * Returns current script name.
  5350. *
  5351. * @return string
  5352. * @api
  5353. * @static
  5354. */
  5355. public static function getScriptName(){
  5356. //Method inherited from Symfony\Component\HttpFoundation\Request
  5357. return Illuminate\Http\Request::getScriptName();
  5358. }
  5359. /**
  5360. * Returns the path being requested relative to the executed script.
  5361. *
  5362. * The path info always starts with a /.
  5363. *
  5364. * Suppose this request is instantiated from /mysite on localhost:
  5365. *
  5366. * * http://localhost/mysite returns an empty string
  5367. * * http://localhost/mysite/about returns '/about'
  5368. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  5369. * * http://localhost/mysite/about?var=1 returns '/about'
  5370. *
  5371. * @return string The raw path (i.e. not urldecoded)
  5372. * @api
  5373. * @static
  5374. */
  5375. public static function getPathInfo(){
  5376. //Method inherited from Symfony\Component\HttpFoundation\Request
  5377. return Illuminate\Http\Request::getPathInfo();
  5378. }
  5379. /**
  5380. * Returns the root path from which this request is executed.
  5381. *
  5382. * Suppose that an index.php file instantiates this request object:
  5383. *
  5384. * * http://localhost/index.php returns an empty string
  5385. * * http://localhost/index.php/page returns an empty string
  5386. * * http://localhost/web/index.php returns '/web'
  5387. * * http://localhost/we%20b/index.php returns '/we%20b'
  5388. *
  5389. * @return string The raw path (i.e. not urldecoded)
  5390. * @api
  5391. * @static
  5392. */
  5393. public static function getBasePath(){
  5394. //Method inherited from Symfony\Component\HttpFoundation\Request
  5395. return Illuminate\Http\Request::getBasePath();
  5396. }
  5397. /**
  5398. * Returns the root url from which this request is executed.
  5399. *
  5400. * The base URL never ends with a /.
  5401. *
  5402. * This is similar to getBasePath(), except that it also includes the
  5403. * script filename (e.g. index.php) if one exists.
  5404. *
  5405. * @return string The raw url (i.e. not urldecoded)
  5406. * @api
  5407. * @static
  5408. */
  5409. public static function getBaseUrl(){
  5410. //Method inherited from Symfony\Component\HttpFoundation\Request
  5411. return Illuminate\Http\Request::getBaseUrl();
  5412. }
  5413. /**
  5414. * Gets the request's scheme.
  5415. *
  5416. * @return string
  5417. * @api
  5418. * @static
  5419. */
  5420. public static function getScheme(){
  5421. //Method inherited from Symfony\Component\HttpFoundation\Request
  5422. return Illuminate\Http\Request::getScheme();
  5423. }
  5424. /**
  5425. * Returns the port on which the request is made.
  5426. *
  5427. * This method can read the client port from the "X-Forwarded-Port" header
  5428. * when trusted proxies were set via "setTrustedProxies()".
  5429. *
  5430. * The "X-Forwarded-Port" header must contain the client port.
  5431. *
  5432. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  5433. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  5434. *
  5435. * @return string
  5436. * @api
  5437. * @static
  5438. */
  5439. public static function getPort(){
  5440. //Method inherited from Symfony\Component\HttpFoundation\Request
  5441. return Illuminate\Http\Request::getPort();
  5442. }
  5443. /**
  5444. * Returns the user.
  5445. *
  5446. * @return string|null
  5447. * @static
  5448. */
  5449. public static function getUser(){
  5450. //Method inherited from Symfony\Component\HttpFoundation\Request
  5451. return Illuminate\Http\Request::getUser();
  5452. }
  5453. /**
  5454. * Returns the password.
  5455. *
  5456. * @return string|null
  5457. * @static
  5458. */
  5459. public static function getPassword(){
  5460. //Method inherited from Symfony\Component\HttpFoundation\Request
  5461. return Illuminate\Http\Request::getPassword();
  5462. }
  5463. /**
  5464. * Gets the user info.
  5465. *
  5466. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  5467. * @static
  5468. */
  5469. public static function getUserInfo(){
  5470. //Method inherited from Symfony\Component\HttpFoundation\Request
  5471. return Illuminate\Http\Request::getUserInfo();
  5472. }
  5473. /**
  5474. * Returns the HTTP host being requested.
  5475. *
  5476. * The port name will be appended to the host if it's non-standard.
  5477. *
  5478. * @return string
  5479. * @api
  5480. * @static
  5481. */
  5482. public static function getHttpHost(){
  5483. //Method inherited from Symfony\Component\HttpFoundation\Request
  5484. return Illuminate\Http\Request::getHttpHost();
  5485. }
  5486. /**
  5487. * Returns the requested URI.
  5488. *
  5489. * @return string The raw URI (i.e. not urldecoded)
  5490. * @api
  5491. * @static
  5492. */
  5493. public static function getRequestUri(){
  5494. //Method inherited from Symfony\Component\HttpFoundation\Request
  5495. return Illuminate\Http\Request::getRequestUri();
  5496. }
  5497. /**
  5498. * Gets the scheme and HTTP host.
  5499. *
  5500. * If the URL was called with basic authentication, the user
  5501. * and the password are not added to the generated string.
  5502. *
  5503. * @return string The scheme and HTTP host
  5504. * @static
  5505. */
  5506. public static function getSchemeAndHttpHost(){
  5507. //Method inherited from Symfony\Component\HttpFoundation\Request
  5508. return Illuminate\Http\Request::getSchemeAndHttpHost();
  5509. }
  5510. /**
  5511. * Generates a normalized URI for the Request.
  5512. *
  5513. * @return string A normalized URI for the Request
  5514. * @see getQueryString()
  5515. * @api
  5516. * @static
  5517. */
  5518. public static function getUri(){
  5519. //Method inherited from Symfony\Component\HttpFoundation\Request
  5520. return Illuminate\Http\Request::getUri();
  5521. }
  5522. /**
  5523. * Generates a normalized URI for the given path.
  5524. *
  5525. * @param string $path A path to use instead of the current one
  5526. * @return string The normalized URI for the path
  5527. * @api
  5528. * @static
  5529. */
  5530. public static function getUriForPath($path){
  5531. //Method inherited from Symfony\Component\HttpFoundation\Request
  5532. return Illuminate\Http\Request::getUriForPath($path);
  5533. }
  5534. /**
  5535. * Generates the normalized query string for the Request.
  5536. *
  5537. * It builds a normalized query string, where keys/value pairs are alphabetized
  5538. * and have consistent escaping.
  5539. *
  5540. * @return string|null A normalized query string for the Request
  5541. * @api
  5542. * @static
  5543. */
  5544. public static function getQueryString(){
  5545. //Method inherited from Symfony\Component\HttpFoundation\Request
  5546. return Illuminate\Http\Request::getQueryString();
  5547. }
  5548. /**
  5549. * Checks whether the request is secure or not.
  5550. *
  5551. * This method can read the client port from the "X-Forwarded-Proto" header
  5552. * when trusted proxies were set via "setTrustedProxies()".
  5553. *
  5554. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  5555. *
  5556. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  5557. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  5558. * the "client-proto" key.
  5559. *
  5560. * @return Boolean
  5561. * @api
  5562. * @static
  5563. */
  5564. public static function isSecure(){
  5565. //Method inherited from Symfony\Component\HttpFoundation\Request
  5566. return Illuminate\Http\Request::isSecure();
  5567. }
  5568. /**
  5569. * Returns the host name.
  5570. *
  5571. * This method can read the client port from the "X-Forwarded-Host" header
  5572. * when trusted proxies were set via "setTrustedProxies()".
  5573. *
  5574. * The "X-Forwarded-Host" header must contain the client host name.
  5575. *
  5576. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  5577. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  5578. *
  5579. * @return string
  5580. * @throws \UnexpectedValueException when the host name is invalid
  5581. * @api
  5582. * @static
  5583. */
  5584. public static function getHost(){
  5585. //Method inherited from Symfony\Component\HttpFoundation\Request
  5586. return Illuminate\Http\Request::getHost();
  5587. }
  5588. /**
  5589. * Sets the request method.
  5590. *
  5591. * @param string $method
  5592. * @api
  5593. * @static
  5594. */
  5595. public static function setMethod($method){
  5596. //Method inherited from Symfony\Component\HttpFoundation\Request
  5597. Illuminate\Http\Request::setMethod($method);
  5598. }
  5599. /**
  5600. * Gets the request "intended" method.
  5601. *
  5602. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  5603. * then it is used to determine the "real" intended HTTP method.
  5604. *
  5605. * The _method request parameter can also be used to determine the HTTP method,
  5606. * but only if enableHttpMethodParameterOverride() has been called.
  5607. *
  5608. * The method is always an uppercased string.
  5609. *
  5610. * @return string The request method
  5611. * @api
  5612. * @see getRealMethod
  5613. * @static
  5614. */
  5615. public static function getMethod(){
  5616. //Method inherited from Symfony\Component\HttpFoundation\Request
  5617. return Illuminate\Http\Request::getMethod();
  5618. }
  5619. /**
  5620. * Gets the "real" request method.
  5621. *
  5622. * @return string The request method
  5623. * @see getMethod
  5624. * @static
  5625. */
  5626. public static function getRealMethod(){
  5627. //Method inherited from Symfony\Component\HttpFoundation\Request
  5628. return Illuminate\Http\Request::getRealMethod();
  5629. }
  5630. /**
  5631. * Gets the mime type associated with the format.
  5632. *
  5633. * @param string $format The format
  5634. * @return string The associated mime type (null if not found)
  5635. * @api
  5636. * @static
  5637. */
  5638. public static function getMimeType($format){
  5639. //Method inherited from Symfony\Component\HttpFoundation\Request
  5640. return Illuminate\Http\Request::getMimeType($format);
  5641. }
  5642. /**
  5643. * Gets the format associated with the mime type.
  5644. *
  5645. * @param string $mimeType The associated mime type
  5646. * @return string|null The format (null if not found)
  5647. * @api
  5648. * @static
  5649. */
  5650. public static function getFormat($mimeType){
  5651. //Method inherited from Symfony\Component\HttpFoundation\Request
  5652. return Illuminate\Http\Request::getFormat($mimeType);
  5653. }
  5654. /**
  5655. * Associates a format with mime types.
  5656. *
  5657. * @param string $format The format
  5658. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  5659. * @api
  5660. * @static
  5661. */
  5662. public static function setFormat($format, $mimeTypes){
  5663. //Method inherited from Symfony\Component\HttpFoundation\Request
  5664. Illuminate\Http\Request::setFormat($format, $mimeTypes);
  5665. }
  5666. /**
  5667. * Gets the request format.
  5668. *
  5669. * Here is the process to determine the format:
  5670. *
  5671. * * format defined by the user (with setRequestFormat())
  5672. * * _format request parameter
  5673. * * $default
  5674. *
  5675. * @param string $default The default format
  5676. * @return string The request format
  5677. * @api
  5678. * @static
  5679. */
  5680. public static function getRequestFormat($default = 'html'){
  5681. //Method inherited from Symfony\Component\HttpFoundation\Request
  5682. return Illuminate\Http\Request::getRequestFormat($default);
  5683. }
  5684. /**
  5685. * Sets the request format.
  5686. *
  5687. * @param string $format The request format.
  5688. * @api
  5689. * @static
  5690. */
  5691. public static function setRequestFormat($format){
  5692. //Method inherited from Symfony\Component\HttpFoundation\Request
  5693. Illuminate\Http\Request::setRequestFormat($format);
  5694. }
  5695. /**
  5696. * Gets the format associated with the request.
  5697. *
  5698. * @return string|null The format (null if no content type is present)
  5699. * @api
  5700. * @static
  5701. */
  5702. public static function getContentType(){
  5703. //Method inherited from Symfony\Component\HttpFoundation\Request
  5704. return Illuminate\Http\Request::getContentType();
  5705. }
  5706. /**
  5707. * Sets the default locale.
  5708. *
  5709. * @param string $locale
  5710. * @api
  5711. * @static
  5712. */
  5713. public static function setDefaultLocale($locale){
  5714. //Method inherited from Symfony\Component\HttpFoundation\Request
  5715. Illuminate\Http\Request::setDefaultLocale($locale);
  5716. }
  5717. /**
  5718. * Sets the locale.
  5719. *
  5720. * @param string $locale
  5721. * @api
  5722. * @static
  5723. */
  5724. public static function setLocale($locale){
  5725. //Method inherited from Symfony\Component\HttpFoundation\Request
  5726. Illuminate\Http\Request::setLocale($locale);
  5727. }
  5728. /**
  5729. * Get the locale.
  5730. *
  5731. * @return string
  5732. * @static
  5733. */
  5734. public static function getLocale(){
  5735. //Method inherited from Symfony\Component\HttpFoundation\Request
  5736. return Illuminate\Http\Request::getLocale();
  5737. }
  5738. /**
  5739. * Checks if the request method is of specified type.
  5740. *
  5741. * @param string $method Uppercase request method (GET, POST etc).
  5742. * @return Boolean
  5743. * @static
  5744. */
  5745. public static function isMethod($method){
  5746. //Method inherited from Symfony\Component\HttpFoundation\Request
  5747. return Illuminate\Http\Request::isMethod($method);
  5748. }
  5749. /**
  5750. * Checks whether the method is safe or not.
  5751. *
  5752. * @return Boolean
  5753. * @api
  5754. * @static
  5755. */
  5756. public static function isMethodSafe(){
  5757. //Method inherited from Symfony\Component\HttpFoundation\Request
  5758. return Illuminate\Http\Request::isMethodSafe();
  5759. }
  5760. /**
  5761. * Returns the request body content.
  5762. *
  5763. * @param Boolean $asResource If true, a resource will be returned
  5764. * @return string|resource The request body content or a resource to read the body stream.
  5765. * @throws \LogicException
  5766. * @static
  5767. */
  5768. public static function getContent($asResource = false){
  5769. //Method inherited from Symfony\Component\HttpFoundation\Request
  5770. return Illuminate\Http\Request::getContent($asResource);
  5771. }
  5772. /**
  5773. * Gets the Etags.
  5774. *
  5775. * @return array The entity tags
  5776. * @static
  5777. */
  5778. public static function getETags(){
  5779. //Method inherited from Symfony\Component\HttpFoundation\Request
  5780. return Illuminate\Http\Request::getETags();
  5781. }
  5782. /**
  5783. *
  5784. *
  5785. * @return Boolean
  5786. * @static
  5787. */
  5788. public static function isNoCache(){
  5789. //Method inherited from Symfony\Component\HttpFoundation\Request
  5790. return Illuminate\Http\Request::isNoCache();
  5791. }
  5792. /**
  5793. * Returns the preferred language.
  5794. *
  5795. * @param array $locales An array of ordered available locales
  5796. * @return string|null The preferred locale
  5797. * @api
  5798. * @static
  5799. */
  5800. public static function getPreferredLanguage($locales = null){
  5801. //Method inherited from Symfony\Component\HttpFoundation\Request
  5802. return Illuminate\Http\Request::getPreferredLanguage($locales);
  5803. }
  5804. /**
  5805. * Gets a list of languages acceptable by the client browser.
  5806. *
  5807. * @return array Languages ordered in the user browser preferences
  5808. * @api
  5809. * @static
  5810. */
  5811. public static function getLanguages(){
  5812. //Method inherited from Symfony\Component\HttpFoundation\Request
  5813. return Illuminate\Http\Request::getLanguages();
  5814. }
  5815. /**
  5816. * Gets a list of charsets acceptable by the client browser.
  5817. *
  5818. * @return array List of charsets in preferable order
  5819. * @api
  5820. * @static
  5821. */
  5822. public static function getCharsets(){
  5823. //Method inherited from Symfony\Component\HttpFoundation\Request
  5824. return Illuminate\Http\Request::getCharsets();
  5825. }
  5826. /**
  5827. * Gets a list of content types acceptable by the client browser
  5828. *
  5829. * @return array List of content types in preferable order
  5830. * @api
  5831. * @static
  5832. */
  5833. public static function getAcceptableContentTypes(){
  5834. //Method inherited from Symfony\Component\HttpFoundation\Request
  5835. return Illuminate\Http\Request::getAcceptableContentTypes();
  5836. }
  5837. /**
  5838. * Returns true if the request is a XMLHttpRequest.
  5839. *
  5840. * It works if your JavaScript library set an X-Requested-With HTTP header.
  5841. * It is known to work with common JavaScript frameworks:
  5842. *
  5843. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  5844. * @return Boolean true if the request is an XMLHttpRequest, false otherwise
  5845. * @api
  5846. * @static
  5847. */
  5848. public static function isXmlHttpRequest(){
  5849. //Method inherited from Symfony\Component\HttpFoundation\Request
  5850. return Illuminate\Http\Request::isXmlHttpRequest();
  5851. }
  5852. }
  5853. class Lang extends Illuminate\Support\Facades\Lang{
  5854. /**
  5855. * Create a new translator instance.
  5856. *
  5857. * @param \Illuminate\Translation\LoaderInterface $loader
  5858. * @param string $locale
  5859. * @return void
  5860. * @static
  5861. */
  5862. public static function __construct($loader, $locale){
  5863. Illuminate\Translation\Translator::__construct($loader, $locale);
  5864. }
  5865. /**
  5866. * Determine if a translation exists.
  5867. *
  5868. * @param string $key
  5869. * @param string $locale
  5870. * @return bool
  5871. * @static
  5872. */
  5873. public static function has($key, $locale = null){
  5874. return Illuminate\Translation\Translator::has($key, $locale);
  5875. }
  5876. /**
  5877. * Get the translation for the given key.
  5878. *
  5879. * @param string $key
  5880. * @param array $replace
  5881. * @param string $locale
  5882. * @return string
  5883. * @static
  5884. */
  5885. public static function get($key, $replace = array(), $locale = null){
  5886. return Illuminate\Translation\Translator::get($key, $replace, $locale);
  5887. }
  5888. /**
  5889. * Get a translation according to an integer value.
  5890. *
  5891. * @param string $key
  5892. * @param int $number
  5893. * @param array $replace
  5894. * @param string $locale
  5895. * @return string
  5896. * @static
  5897. */
  5898. public static function choice($key, $number, $replace = array(), $locale = null){
  5899. return Illuminate\Translation\Translator::choice($key, $number, $replace, $locale);
  5900. }
  5901. /**
  5902. * Get the translation for a given key.
  5903. *
  5904. * @param string $id
  5905. * @param array $parameters
  5906. * @param string $domain
  5907. * @param string $locale
  5908. * @return string
  5909. * @static
  5910. */
  5911. public static function trans($id, $parameters = array(), $domain = 'messages', $locale = null){
  5912. return Illuminate\Translation\Translator::trans($id, $parameters, $domain, $locale);
  5913. }
  5914. /**
  5915. * Get a translation according to an integer value.
  5916. *
  5917. * @param string $id
  5918. * @param int $number
  5919. * @param array $parameters
  5920. * @param string $domain
  5921. * @param string $locale
  5922. * @return string
  5923. * @static
  5924. */
  5925. public static function transChoice($id, $number, $parameters = array(), $domain = 'messages', $locale = null){
  5926. return Illuminate\Translation\Translator::transChoice($id, $number, $parameters, $domain, $locale);
  5927. }
  5928. /**
  5929. * Load the specified language group.
  5930. *
  5931. * @param string $namespace
  5932. * @param string $group
  5933. * @param string $locale
  5934. * @return void
  5935. * @static
  5936. */
  5937. public static function load($namespace, $group, $locale){
  5938. Illuminate\Translation\Translator::load($namespace, $group, $locale);
  5939. }
  5940. /**
  5941. * Add a new namespace to the loader.
  5942. *
  5943. * @param string $namespace
  5944. * @param string $hint
  5945. * @return void
  5946. * @static
  5947. */
  5948. public static function addNamespace($namespace, $hint){
  5949. Illuminate\Translation\Translator::addNamespace($namespace, $hint);
  5950. }
  5951. /**
  5952. * Parse a key into namespace, group, and item.
  5953. *
  5954. * @param string $key
  5955. * @return array
  5956. * @static
  5957. */
  5958. public static function parseKey($key){
  5959. return Illuminate\Translation\Translator::parseKey($key);
  5960. }
  5961. /**
  5962. * Get the message selector instance.
  5963. *
  5964. * @return \Symfony\Component\Translation\MessageSelector
  5965. * @static
  5966. */
  5967. public static function getSelector(){
  5968. return Illuminate\Translation\Translator::getSelector();
  5969. }
  5970. /**
  5971. * Set the message selector instance.
  5972. *
  5973. * @param \Symfony\Component\Translation\MessageSelector $selector
  5974. * @return void
  5975. * @static
  5976. */
  5977. public static function setSelector($selector){
  5978. Illuminate\Translation\Translator::setSelector($selector);
  5979. }
  5980. /**
  5981. * Get the language line loader implementation.
  5982. *
  5983. * @return \Illuminate\Translation\LoaderInterface
  5984. * @static
  5985. */
  5986. public static function getLoader(){
  5987. return Illuminate\Translation\Translator::getLoader();
  5988. }
  5989. /**
  5990. * Get the default locale being used.
  5991. *
  5992. * @return string
  5993. * @static
  5994. */
  5995. public static function locale(){
  5996. return Illuminate\Translation\Translator::locale();
  5997. }
  5998. /**
  5999. * Get the default locale being used.
  6000. *
  6001. * @return string
  6002. * @static
  6003. */
  6004. public static function getLocale(){
  6005. return Illuminate\Translation\Translator::getLocale();
  6006. }
  6007. /**
  6008. * Set the default locale.
  6009. *
  6010. * @param string $locale
  6011. * @return void
  6012. * @static
  6013. */
  6014. public static function setLocale($locale){
  6015. Illuminate\Translation\Translator::setLocale($locale);
  6016. }
  6017. /**
  6018. * Set the parsed value of a key.
  6019. *
  6020. * @param string $key
  6021. * @param array $parsed
  6022. * @return void
  6023. * @static
  6024. */
  6025. public static function setParsedKey($key, $parsed){
  6026. //Method inherited from Illuminate\Support\NamespacedItemResolver
  6027. Illuminate\Translation\Translator::setParsedKey($key, $parsed);
  6028. }
  6029. }
  6030. class Log extends Illuminate\Support\Facades\Log{
  6031. /**
  6032. * Create a new log writer instance.
  6033. *
  6034. * @param \Monolog\Logger $monolog
  6035. * @param \Illuminate\Events\Dispatcher $dispatcher
  6036. * @return void
  6037. * @static
  6038. */
  6039. public static function __construct($monolog, $dispatcher = null){
  6040. Illuminate\Log\Writer::__construct($monolog, $dispatcher);
  6041. }
  6042. /**
  6043. * Register a file log handler.
  6044. *
  6045. * @param string $path
  6046. * @param string $level
  6047. * @return void
  6048. * @static
  6049. */
  6050. public static function useFiles($path, $level = 'debug'){
  6051. Illuminate\Log\Writer::useFiles($path, $level);
  6052. }
  6053. /**
  6054. * Register a daily file log handler.
  6055. *
  6056. * @param string $path
  6057. * @param int $days
  6058. * @param string $level
  6059. * @return void
  6060. * @static
  6061. */
  6062. public static function useDailyFiles($path, $days = 0, $level = 'debug'){
  6063. Illuminate\Log\Writer::useDailyFiles($path, $days, $level);
  6064. }
  6065. /**
  6066. * Get the underlying Monolog instance.
  6067. *
  6068. * @return \Monolog\Logger
  6069. * @static
  6070. */
  6071. public static function getMonolog(){
  6072. return Illuminate\Log\Writer::getMonolog();
  6073. }
  6074. /**
  6075. * Register a new callback handler for when
  6076. * a log event is triggered.
  6077. *
  6078. * @param Closure $callback
  6079. * @return void
  6080. * @static
  6081. */
  6082. public static function listen($callback){
  6083. Illuminate\Log\Writer::listen($callback);
  6084. }
  6085. /**
  6086. * Get the event dispatcher instance.
  6087. *
  6088. * @return \Illuminate\Events\Dispatcher
  6089. * @static
  6090. */
  6091. public static function getEventDispatcher(){
  6092. return Illuminate\Log\Writer::getEventDispatcher();
  6093. }
  6094. /**
  6095. * Set the event dispatcher instance.
  6096. *
  6097. * @param \Illuminate\Events\Dispatcher
  6098. * @return void
  6099. * @static
  6100. */
  6101. public static function setEventDispatcher($dispatcher){
  6102. Illuminate\Log\Writer::setEventDispatcher($dispatcher);
  6103. }
  6104. /**
  6105. * Dynamically handle error additions.
  6106. *
  6107. * @param string $method
  6108. * @param array $parameters
  6109. * @return mixed
  6110. * @static
  6111. */
  6112. public static function __call($method, $parameters){
  6113. return Illuminate\Log\Writer::__call($method, $parameters);
  6114. }
  6115. /**
  6116. * Adds a log record at the DEBUG level.
  6117. *
  6118. * @param string $message The log message
  6119. * @param array $context The log context
  6120. * @return Boolean Whether the record has been processed
  6121. * @static
  6122. */
  6123. public static function debug($message, $context = array()){
  6124. return Monolog\Logger::addDebug($message, $context);
  6125. }
  6126. /**
  6127. * Adds a log record at the INFO level.
  6128. *
  6129. * @param string $message The log message
  6130. * @param array $context The log context
  6131. * @return Boolean Whether the record has been processed
  6132. * @static
  6133. */
  6134. public static function info($message, $context = array()){
  6135. return Monolog\Logger::addInfo($message, $context);
  6136. }
  6137. /**
  6138. * Adds a log record at the NOTICE level.
  6139. *
  6140. * @param string $message The log message
  6141. * @param array $context The log context
  6142. * @return Boolean Whether the record has been processed
  6143. * @static
  6144. */
  6145. public static function notice($message, $context = array()){
  6146. return Monolog\Logger::addNotice($message, $context);
  6147. }
  6148. /**
  6149. * Adds a log record at the WARNING level.
  6150. *
  6151. * @param string $message The log message
  6152. * @param array $context The log context
  6153. * @return Boolean Whether the record has been processed
  6154. * @static
  6155. */
  6156. public static function warning($message, $context = array()){
  6157. return Monolog\Logger::addWarning($message, $context);
  6158. }
  6159. /**
  6160. * Adds a log record at the ERROR level.
  6161. *
  6162. * @param string $message The log message
  6163. * @param array $context The log context
  6164. * @return Boolean Whether the record has been processed
  6165. * @static
  6166. */
  6167. public static function error($message, $context = array()){
  6168. return Monolog\Logger::addError($message, $context);
  6169. }
  6170. /**
  6171. * Adds a log record at the CRITICAL level.
  6172. *
  6173. * @param string $message The log message
  6174. * @param array $context The log context
  6175. * @return Boolean Whether the record has been processed
  6176. * @static
  6177. */
  6178. public static function critical($message, $context = array()){
  6179. return Monolog\Logger::addCritical($message, $context);
  6180. }
  6181. /**
  6182. * Adds a log record at the ALERT level.
  6183. *
  6184. * @param string $message The log message
  6185. * @param array $context The log context
  6186. * @return Boolean Whether the record has been processed
  6187. * @static
  6188. */
  6189. public static function alert($message, $context = array()){
  6190. return Monolog\Logger::addAlert($message, $context);
  6191. }
  6192. /**
  6193. * Adds a log record at the EMERGENCY level.
  6194. *
  6195. * @param string $message The log message
  6196. * @param array $context The log context
  6197. * @return Boolean Whether the record has been processed
  6198. * @static
  6199. */
  6200. public static function emergency($message, $context = array()){
  6201. return Monolog\Logger::addEmergency($message, $context);
  6202. }
  6203. }
  6204. class Mail extends Illuminate\Support\Facades\Mail{
  6205. /**
  6206. * Create a new Mailer instance.
  6207. *
  6208. * @param \Illuminate\View\Environment $views
  6209. * @param \Swift_Mailer $swift
  6210. * @return void
  6211. * @static
  6212. */
  6213. public static function __construct($views, $swift){
  6214. Illuminate\Mail\Mailer::__construct($views, $swift);
  6215. }
  6216. /**
  6217. * Set the global from address and name.
  6218. *
  6219. * @param string $address
  6220. * @param string $name
  6221. * @return void
  6222. * @static
  6223. */
  6224. public static function alwaysFrom($address, $name = null){
  6225. Illuminate\Mail\Mailer::alwaysFrom($address, $name);
  6226. }
  6227. /**
  6228. * Send a new message when only a plain part.
  6229. *
  6230. * @param string $view
  6231. * @param array $data
  6232. * @param mixed $callback
  6233. * @return int
  6234. * @static
  6235. */
  6236. public static function plain($view, $data, $callback){
  6237. return Illuminate\Mail\Mailer::plain($view, $data, $callback);
  6238. }
  6239. /**
  6240. * Send a new message using a view.
  6241. *
  6242. * @param string|array $view
  6243. * @param array $data
  6244. * @param Closure|string $callback
  6245. * @return int
  6246. * @static
  6247. */
  6248. public static function send($view, $data, $callback){
  6249. return Illuminate\Mail\Mailer::send($view, $data, $callback);
  6250. }
  6251. /**
  6252. * Queue a new e-mail message for sending.
  6253. *
  6254. * @param string|array $view
  6255. * @param array $data
  6256. * @param Closure|string $callback
  6257. * @param string $queue
  6258. * @return void
  6259. * @static
  6260. */
  6261. public static function queue($view, $data, $callback, $queue = null){
  6262. Illuminate\Mail\Mailer::queue($view, $data, $callback, $queue);
  6263. }
  6264. /**
  6265. * Queue a new e-mail message for sending on the given queue.
  6266. *
  6267. * @param string $queue
  6268. * @param string|array $view
  6269. * @param array $data
  6270. * @param Closure|string $callback
  6271. * @return void
  6272. * @static
  6273. */
  6274. public static function queueOn($queue, $view, $data, $callback){
  6275. Illuminate\Mail\Mailer::queueOn($queue, $view, $data, $callback);
  6276. }
  6277. /**
  6278. * Queue a new e-mail message for sending after (n) seconds.
  6279. *
  6280. * @param int $delay
  6281. * @param string|array $view
  6282. * @param array $data
  6283. * @param Closure|string $callback
  6284. * @param string $queue
  6285. * @return void
  6286. * @static
  6287. */
  6288. public static function later($delay, $view, $data, $callback, $queue = null){
  6289. Illuminate\Mail\Mailer::later($delay, $view, $data, $callback, $queue);
  6290. }
  6291. /**
  6292. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6293. *
  6294. * @param string $queue
  6295. * @param int $delay
  6296. * @param string|array $view
  6297. * @param array $data
  6298. * @param Closure|string $callback
  6299. * @return void
  6300. * @static
  6301. */
  6302. public static function laterOn($queue, $delay, $view, $data, $callback){
  6303. Illuminate\Mail\Mailer::laterOn($queue, $delay, $view, $data, $callback);
  6304. }
  6305. /**
  6306. * Handle a queued e-mail message job.
  6307. *
  6308. * @param \Illuminate\Queue\Jobs\Job $job
  6309. * @param array $data
  6310. * @return void
  6311. * @static
  6312. */
  6313. public static function handleQueuedMessage($job, $data){
  6314. Illuminate\Mail\Mailer::handleQueuedMessage($job, $data);
  6315. }
  6316. /**
  6317. * Tell the mailer to not really send messages.
  6318. *
  6319. * @param bool $value
  6320. * @return void
  6321. * @static
  6322. */
  6323. public static function pretend($value = true){
  6324. Illuminate\Mail\Mailer::pretend($value);
  6325. }
  6326. /**
  6327. * Get the view environment instance.
  6328. *
  6329. * @return \Illuminate\View\Environment
  6330. * @static
  6331. */
  6332. public static function getViewEnvironment(){
  6333. return Illuminate\Mail\Mailer::getViewEnvironment();
  6334. }
  6335. /**
  6336. * Get the Swift Mailer instance.
  6337. *
  6338. * @return \Swift_Mailer
  6339. * @static
  6340. */
  6341. public static function getSwiftMailer(){
  6342. return Illuminate\Mail\Mailer::getSwiftMailer();
  6343. }
  6344. /**
  6345. * Set the Swift Mailer instance.
  6346. *
  6347. * @param \Swift_Mailer $swift
  6348. * @return void
  6349. * @static
  6350. */
  6351. public static function setSwiftMailer($swift){
  6352. Illuminate\Mail\Mailer::setSwiftMailer($swift);
  6353. }
  6354. /**
  6355. * Set the log writer instance.
  6356. *
  6357. * @param \Illuminate\Log\Writer $logger
  6358. * @return \Illuminate\Mail\Mailer
  6359. * @static
  6360. */
  6361. public static function setLogger($logger){
  6362. return Illuminate\Mail\Mailer::setLogger($logger);
  6363. }
  6364. /**
  6365. * Set the queue manager instance.
  6366. *
  6367. * @param \Illuminate\Queue\QueueManager $queue
  6368. * @return \Illuminate\Mail\Mailer
  6369. * @static
  6370. */
  6371. public static function setQueue($queue){
  6372. return Illuminate\Mail\Mailer::setQueue($queue);
  6373. }
  6374. /**
  6375. * Set the IoC container instance.
  6376. *
  6377. * @param \Illuminate\Container\Container $container
  6378. * @return void
  6379. * @static
  6380. */
  6381. public static function setContainer($container){
  6382. Illuminate\Mail\Mailer::setContainer($container);
  6383. }
  6384. }
  6385. class Paginator extends Illuminate\Support\Facades\Paginator{
  6386. /**
  6387. * Create a new pagination environment.
  6388. *
  6389. * @param \Symfony\Component\HttpFoundation\Request $request
  6390. * @param \Illuminate\View\Environment $view
  6391. * @param \Symfony\Component\Translation\TranslatorInterface $trans
  6392. * @param string $pageName
  6393. * @return void
  6394. * @static
  6395. */
  6396. public static function __construct($request, $view, $trans, $pageName = 'page'){
  6397. Illuminate\Pagination\Environment::__construct($request, $view, $trans, $pageName);
  6398. }
  6399. /**
  6400. * Get a new paginator instance.
  6401. *
  6402. * @param array $items
  6403. * @param int $total
  6404. * @param int $perPage
  6405. * @return \Illuminate\Pagination\Paginator
  6406. * @static
  6407. */
  6408. public static function make($items, $total, $perPage){
  6409. return Illuminate\Pagination\Environment::make($items, $total, $perPage);
  6410. }
  6411. /**
  6412. * Get the pagination view.
  6413. *
  6414. * @param \Illuminate\Pagination\Paginator $paginator
  6415. * @return \Illuminate\View\View
  6416. * @static
  6417. */
  6418. public static function getPaginationView($paginator){
  6419. return Illuminate\Pagination\Environment::getPaginationView($paginator);
  6420. }
  6421. /**
  6422. * Get the number of the current page.
  6423. *
  6424. * @return int
  6425. * @static
  6426. */
  6427. public static function getCurrentPage(){
  6428. return Illuminate\Pagination\Environment::getCurrentPage();
  6429. }
  6430. /**
  6431. * Set the number of the current page.
  6432. *
  6433. * @param int $number
  6434. * @return void
  6435. * @static
  6436. */
  6437. public static function setCurrentPage($number){
  6438. Illuminate\Pagination\Environment::setCurrentPage($number);
  6439. }
  6440. /**
  6441. * Get the root URL for the request.
  6442. *
  6443. * @return string
  6444. * @static
  6445. */
  6446. public static function getCurrentUrl(){
  6447. return Illuminate\Pagination\Environment::getCurrentUrl();
  6448. }
  6449. /**
  6450. * Set the base URL in use by the paginator.
  6451. *
  6452. * @param string $baseUrl
  6453. * @return void
  6454. * @static
  6455. */
  6456. public static function setBaseUrl($baseUrl){
  6457. Illuminate\Pagination\Environment::setBaseUrl($baseUrl);
  6458. }
  6459. /**
  6460. * Set the input page parameter name used by the paginator.
  6461. *
  6462. * @param string $pageName
  6463. * @return void
  6464. * @static
  6465. */
  6466. public static function setPageName($pageName){
  6467. Illuminate\Pagination\Environment::setPageName($pageName);
  6468. }
  6469. /**
  6470. * Get the input page parameter name used by the paginator.
  6471. *
  6472. * @return string
  6473. * @static
  6474. */
  6475. public static function getPageName(){
  6476. return Illuminate\Pagination\Environment::getPageName();
  6477. }
  6478. /**
  6479. * Get the name of the pagination view.
  6480. *
  6481. * @return string
  6482. * @static
  6483. */
  6484. public static function getViewName(){
  6485. return Illuminate\Pagination\Environment::getViewName();
  6486. }
  6487. /**
  6488. * Set the name of the pagination view.
  6489. *
  6490. * @param string $viewName
  6491. * @return void
  6492. * @static
  6493. */
  6494. public static function setViewName($viewName){
  6495. Illuminate\Pagination\Environment::setViewName($viewName);
  6496. }
  6497. /**
  6498. * Get the locale of the paginator.
  6499. *
  6500. * @return string
  6501. * @static
  6502. */
  6503. public static function getLocale(){
  6504. return Illuminate\Pagination\Environment::getLocale();
  6505. }
  6506. /**
  6507. * Set the locale of the paginator.
  6508. *
  6509. * @param string $locale
  6510. * @return void
  6511. * @static
  6512. */
  6513. public static function setLocale($locale){
  6514. Illuminate\Pagination\Environment::setLocale($locale);
  6515. }
  6516. /**
  6517. * Get the active request instance.
  6518. *
  6519. * @return \Symfony\Component\HttpFoundation\Request
  6520. * @static
  6521. */
  6522. public static function getRequest(){
  6523. return Illuminate\Pagination\Environment::getRequest();
  6524. }
  6525. /**
  6526. * Set the active request instance.
  6527. *
  6528. * @param \Symfony\Component\HttpFoundation\Request $request
  6529. * @return void
  6530. * @static
  6531. */
  6532. public static function setRequest($request){
  6533. Illuminate\Pagination\Environment::setRequest($request);
  6534. }
  6535. /**
  6536. * Get the current view driver.
  6537. *
  6538. * @return \Illuminate\View\Environment
  6539. * @static
  6540. */
  6541. public static function getViewDriver(){
  6542. return Illuminate\Pagination\Environment::getViewDriver();
  6543. }
  6544. /**
  6545. * Set the current view driver.
  6546. *
  6547. * @param \Illuminate\View\Environment $view
  6548. * @return void
  6549. * @static
  6550. */
  6551. public static function setViewDriver($view){
  6552. Illuminate\Pagination\Environment::setViewDriver($view);
  6553. }
  6554. /**
  6555. * Get the translator instance.
  6556. *
  6557. * @return \Symfony\Component\Translation\TranslatorInterface
  6558. * @static
  6559. */
  6560. public static function getTranslator(){
  6561. return Illuminate\Pagination\Environment::getTranslator();
  6562. }
  6563. }
  6564. class Password extends Illuminate\Support\Facades\Password{
  6565. /**
  6566. * Create a new password broker instance.
  6567. *
  6568. * @param \Illuminate\Auth\Reminders\ReminderRepositoryInterface $reminders
  6569. * @param \Illuminate\Auth\UserProviderInterface $users
  6570. * @param \Illuminate\Routing\Redirector $redirect
  6571. * @param \Illuminate\Mail\Mailer $mailer
  6572. * @param string $reminderView
  6573. * @return void
  6574. * @static
  6575. */
  6576. public static function __construct($reminders, $users, $redirect, $mailer, $reminderView){
  6577. Illuminate\Auth\Reminders\PasswordBroker::__construct($reminders, $users, $redirect, $mailer, $reminderView);
  6578. }
  6579. /**
  6580. * Send a password reminder to a user.
  6581. *
  6582. * @param array $credentials
  6583. * @param Closure $callback
  6584. * @return \Illuminate\Http\RedirectResponse
  6585. * @static
  6586. */
  6587. public static function remind($credentials, $callback = null){
  6588. return Illuminate\Auth\Reminders\PasswordBroker::remind($credentials, $callback);
  6589. }
  6590. /**
  6591. * Send the password reminder e-mail.
  6592. *
  6593. * @param \Illuminate\Auth\Reminders\RemindableInterface $user
  6594. * @param string $token
  6595. * @param Closure $callback
  6596. * @return void
  6597. * @static
  6598. */
  6599. public static function sendReminder($user, $token, $callback = null){
  6600. Illuminate\Auth\Reminders\PasswordBroker::sendReminder($user, $token, $callback);
  6601. }
  6602. /**
  6603. * Reset the password for the given token.
  6604. *
  6605. * @param array $credentials
  6606. * @param Closure $callback
  6607. * @return mixed
  6608. * @static
  6609. */
  6610. public static function reset($credentials, $callback){
  6611. return Illuminate\Auth\Reminders\PasswordBroker::reset($credentials, $callback);
  6612. }
  6613. /**
  6614. * Get the user for the given credentials.
  6615. *
  6616. * @param array $credentials
  6617. * @return \Illuminate\Auth\Reminders\RemindableInterface
  6618. * @static
  6619. */
  6620. public static function getUser($credentials){
  6621. return Illuminate\Auth\Reminders\PasswordBroker::getUser($credentials);
  6622. }
  6623. }
  6624. class Queue extends Illuminate\Support\Facades\Queue{
  6625. /**
  6626. * Create a new queue manager instance.
  6627. *
  6628. * @param \Illuminate\Foundation\Application $app
  6629. * @return void
  6630. * @static
  6631. */
  6632. public static function __construct($app){
  6633. Illuminate\Queue\QueueManager::__construct($app);
  6634. }
  6635. /**
  6636. * Resolve a queue connection instance.
  6637. *
  6638. * @param string $name
  6639. * @return \Illuminate\Queue\QueueInterface
  6640. * @static
  6641. */
  6642. public static function connection($name = null){
  6643. return Illuminate\Queue\QueueManager::connection($name);
  6644. }
  6645. /**
  6646. * Add a queue connection resolver.
  6647. *
  6648. * @param string $driver
  6649. * @param Closure $resolver
  6650. * @return void
  6651. * @static
  6652. */
  6653. public static function addConnector($driver, $resolver){
  6654. Illuminate\Queue\QueueManager::addConnector($driver, $resolver);
  6655. }
  6656. /**
  6657. * Dynamically pass calls to the default connection.
  6658. *
  6659. * @param string $method
  6660. * @param array $parameters
  6661. * @return mixed
  6662. * @static
  6663. */
  6664. public static function __call($method, $parameters){
  6665. return Illuminate\Queue\QueueManager::__call($method, $parameters);
  6666. }
  6667. /**
  6668. * Push a new job onto the queue.
  6669. *
  6670. * @param string $job
  6671. * @param mixed $data
  6672. * @param string $queue
  6673. * @return mixed
  6674. * @static
  6675. */
  6676. public static function push($job, $data = '', $queue = null){
  6677. return Barryvdh\Queue\AsyncQueue::push($job, $data, $queue);
  6678. }
  6679. /**
  6680. * Make a Process for the Artisan command with the payload
  6681. *
  6682. * @param $payload
  6683. * @return \Symfony\Component\Process\Process
  6684. * @static
  6685. */
  6686. public static function makeProcess($payload){
  6687. return Barryvdh\Queue\AsyncQueue::makeProcess($payload);
  6688. }
  6689. /**
  6690. * Push a new job onto the queue after a delay.
  6691. *
  6692. * @param \DateTime|int $delay
  6693. * @param string $job
  6694. * @param mixed $data
  6695. * @param string $queue
  6696. * @return mixed
  6697. * @static
  6698. */
  6699. public static function later($delay, $job, $data = '', $queue = null){
  6700. return Barryvdh\Queue\AsyncQueue::later($delay, $job, $data, $queue);
  6701. }
  6702. /**
  6703. * Pop the next job off of the queue.
  6704. *
  6705. * @param string $queue
  6706. * @return \Illuminate\Queue\Jobs\Job|null
  6707. * @static
  6708. */
  6709. public static function pop($queue = null){
  6710. return Barryvdh\Queue\AsyncQueue::pop($queue);
  6711. }
  6712. /**
  6713. * Marshal a push queue request and fire the job.
  6714. *
  6715. * @return Illuminate\Http\Response
  6716. * @static
  6717. */
  6718. public static function marshal(){
  6719. //Method inherited from Illuminate\Queue\Queue
  6720. return Barryvdh\Queue\AsyncQueue::marshal();
  6721. }
  6722. /**
  6723. * Push a new an array of jobs onto the queue.
  6724. *
  6725. * @param array $jobs
  6726. * @param mixed $data
  6727. * @param string $queue
  6728. * @return mixed
  6729. * @static
  6730. */
  6731. public static function bulk($jobs, $data = '', $queue = null){
  6732. //Method inherited from Illuminate\Queue\Queue
  6733. return Barryvdh\Queue\AsyncQueue::bulk($jobs, $data, $queue);
  6734. }
  6735. /**
  6736. * Get the current UNIX timestamp.
  6737. *
  6738. * @return int
  6739. * @static
  6740. */
  6741. public static function getTime(){
  6742. //Method inherited from Illuminate\Queue\Queue
  6743. return Barryvdh\Queue\AsyncQueue::getTime();
  6744. }
  6745. /**
  6746. * Set the IoC container instance.
  6747. *
  6748. * @param \Illuminate\Container $container
  6749. * @return void
  6750. * @static
  6751. */
  6752. public static function setContainer($container){
  6753. //Method inherited from Illuminate\Queue\Queue
  6754. Barryvdh\Queue\AsyncQueue::setContainer($container);
  6755. }
  6756. }
  6757. class Redirect extends Illuminate\Support\Facades\Redirect{
  6758. /**
  6759. * Create a new Redirector instance.
  6760. *
  6761. * @param \Illuminate\Routing\UrlGenerator $generator
  6762. * @return void
  6763. * @static
  6764. */
  6765. public static function __construct($generator){
  6766. Illuminate\Routing\Redirector::__construct($generator);
  6767. }
  6768. /**
  6769. * Create a new redirect response to the "home" route.
  6770. *
  6771. * @param int $status
  6772. * @return \Illuminate\Http\RedirectResponse
  6773. * @static
  6774. */
  6775. public static function home($status = 302){
  6776. return Illuminate\Routing\Redirector::home($status);
  6777. }
  6778. /**
  6779. * Create a new redirect response to the previous location.
  6780. *
  6781. * @param int $status
  6782. * @param array $headers
  6783. * @return \Illuminate\Http\RedirectResponse
  6784. * @static
  6785. */
  6786. public static function back($status = 302, $headers = array()){
  6787. return Illuminate\Routing\Redirector::back($status, $headers);
  6788. }
  6789. /**
  6790. * Create a new redirect response to the current URI.
  6791. *
  6792. * @param int $status
  6793. * @param array $headers
  6794. * @return \Illuminate\Http\RedirectResponse
  6795. * @static
  6796. */
  6797. public static function refresh($status = 302, $headers = array()){
  6798. return Illuminate\Routing\Redirector::refresh($status, $headers);
  6799. }
  6800. /**
  6801. * Create a new redirect response, while putting the current URL in the session.
  6802. *
  6803. * @param string $path
  6804. * @param int $status
  6805. * @param array $headers
  6806. * @param bool $secure
  6807. * @return \Illuminate\Http\RedirectResponse
  6808. * @static
  6809. */
  6810. public static function guest($path, $status = 302, $headers = array(), $secure = null){
  6811. return Illuminate\Routing\Redirector::guest($path, $status, $headers, $secure);
  6812. }
  6813. /**
  6814. * Create a new redirect response to the previously intended location.
  6815. *
  6816. * @param string $default
  6817. * @param int $status
  6818. * @param array $headers
  6819. * @param bool $secure
  6820. * @return \Illuminate\Http\RedirectResponse
  6821. * @static
  6822. */
  6823. public static function intended($default, $status = 302, $headers = array(), $secure = null){
  6824. return Illuminate\Routing\Redirector::intended($default, $status, $headers, $secure);
  6825. }
  6826. /**
  6827. * Create a new redirect response to the given path.
  6828. *
  6829. * @param string $path
  6830. * @param int $status
  6831. * @param array $headers
  6832. * @param bool $secure
  6833. * @return \Illuminate\Http\RedirectResponse
  6834. * @static
  6835. */
  6836. public static function to($path, $status = 302, $headers = array(), $secure = null){
  6837. return Illuminate\Routing\Redirector::to($path, $status, $headers, $secure);
  6838. }
  6839. /**
  6840. * Create a new redirect response to an external URL (no validation).
  6841. *
  6842. * @param string $path
  6843. * @param int $status
  6844. * @param array $headers
  6845. * @return \Illuminate\Http\RedirectResponse
  6846. * @static
  6847. */
  6848. public static function away($path, $status = 302, $headers = array()){
  6849. return Illuminate\Routing\Redirector::away($path, $status, $headers);
  6850. }
  6851. /**
  6852. * Create a new redirect response to the given HTTPS path.
  6853. *
  6854. * @param string $path
  6855. * @param int $status
  6856. * @param array $headers
  6857. * @return \Illuminate\Http\RedirectResponse
  6858. * @static
  6859. */
  6860. public static function secure($path, $status = 302, $headers = array()){
  6861. return Illuminate\Routing\Redirector::secure($path, $status, $headers);
  6862. }
  6863. /**
  6864. * Create a new redirect response to a named route.
  6865. *
  6866. * @param string $route
  6867. * @param array $parameters
  6868. * @param int $status
  6869. * @param array $headers
  6870. * @return \Illuminate\Http\RedirectResponse
  6871. * @static
  6872. */
  6873. public static function route($route, $parameters = array(), $status = 302, $headers = array()){
  6874. return Illuminate\Routing\Redirector::route($route, $parameters, $status, $headers);
  6875. }
  6876. /**
  6877. * Create a new redirect response to a controller action.
  6878. *
  6879. * @param string $action
  6880. * @param array $parameters
  6881. * @param int $status
  6882. * @param array $headers
  6883. * @return \Illuminate\Http\RedirectResponse
  6884. * @static
  6885. */
  6886. public static function action($action, $parameters = array(), $status = 302, $headers = array()){
  6887. return Illuminate\Routing\Redirector::action($action, $parameters, $status, $headers);
  6888. }
  6889. /**
  6890. * Get the URL generator instance.
  6891. *
  6892. * @return \Illuminate\Routing\UrlGenerator
  6893. * @static
  6894. */
  6895. public static function getUrlGenerator(){
  6896. return Illuminate\Routing\Redirector::getUrlGenerator();
  6897. }
  6898. /**
  6899. * Set the active session store.
  6900. *
  6901. * @param \Illuminate\Session\Store $session
  6902. * @return void
  6903. * @static
  6904. */
  6905. public static function setSession($session){
  6906. Illuminate\Routing\Redirector::setSession($session);
  6907. }
  6908. }
  6909. class Redis extends Illuminate\Support\Facades\Redis{
  6910. /**
  6911. * Create a new Redis connection instance.
  6912. *
  6913. * @param array $servers
  6914. * @return void
  6915. * @static
  6916. */
  6917. public static function __construct($servers = array()){
  6918. Illuminate\Redis\Database::__construct($servers);
  6919. }
  6920. /**
  6921. * Get a specific Redis connection instance.
  6922. *
  6923. * @param string $name
  6924. * @return \Predis\Connection\SingleConnectionInterface
  6925. * @static
  6926. */
  6927. public static function connection($name = 'default'){
  6928. return Illuminate\Redis\Database::connection($name);
  6929. }
  6930. /**
  6931. * Run a command against the Redis database.
  6932. *
  6933. * @param string $method
  6934. * @param array $parameters
  6935. * @return mixed
  6936. * @static
  6937. */
  6938. public static function command($method, $parameters = array()){
  6939. return Illuminate\Redis\Database::command($method, $parameters);
  6940. }
  6941. /**
  6942. * Dynamically make a Redis command.
  6943. *
  6944. * @param string $method
  6945. * @param array $parameters
  6946. * @return mixed
  6947. * @static
  6948. */
  6949. public static function __call($method, $parameters){
  6950. return Illuminate\Redis\Database::__call($method, $parameters);
  6951. }
  6952. }
  6953. class Request extends Illuminate\Support\Facades\Request{
  6954. /**
  6955. * Return the Request instance.
  6956. *
  6957. * @return \Illuminate\Http\Request
  6958. * @static
  6959. */
  6960. public static function instance(){
  6961. return Illuminate\Http\Request::instance();
  6962. }
  6963. /**
  6964. * Get the root URL for the application.
  6965. *
  6966. * @return string
  6967. * @static
  6968. */
  6969. public static function root(){
  6970. return Illuminate\Http\Request::root();
  6971. }
  6972. /**
  6973. * Get the URL (no query string) for the request.
  6974. *
  6975. * @return string
  6976. * @static
  6977. */
  6978. public static function url(){
  6979. return Illuminate\Http\Request::url();
  6980. }
  6981. /**
  6982. * Get the full URL for the request.
  6983. *
  6984. * @return string
  6985. * @static
  6986. */
  6987. public static function fullUrl(){
  6988. return Illuminate\Http\Request::fullUrl();
  6989. }
  6990. /**
  6991. * Get the current path info for the request.
  6992. *
  6993. * @return string
  6994. * @static
  6995. */
  6996. public static function path(){
  6997. return Illuminate\Http\Request::path();
  6998. }
  6999. /**
  7000. * Get a segment from the URI (1 based index).
  7001. *
  7002. * @param string $index
  7003. * @param mixed $default
  7004. * @return string
  7005. * @static
  7006. */
  7007. public static function segment($index, $default = null){
  7008. return Illuminate\Http\Request::segment($index, $default);
  7009. }
  7010. /**
  7011. * Get all of the segments for the request path.
  7012. *
  7013. * @return array
  7014. * @static
  7015. */
  7016. public static function segments(){
  7017. return Illuminate\Http\Request::segments();
  7018. }
  7019. /**
  7020. * Determine if the current request URI matches a pattern.
  7021. *
  7022. * @param string $pattern
  7023. * @return bool
  7024. * @static
  7025. */
  7026. public static function is($pattern){
  7027. return Illuminate\Http\Request::is($pattern);
  7028. }
  7029. /**
  7030. * Determine if the request is the result of an AJAX call.
  7031. *
  7032. * @return bool
  7033. * @static
  7034. */
  7035. public static function ajax(){
  7036. return Illuminate\Http\Request::ajax();
  7037. }
  7038. /**
  7039. * Determine if the request is over HTTPS.
  7040. *
  7041. * @return bool
  7042. * @static
  7043. */
  7044. public static function secure(){
  7045. return Illuminate\Http\Request::secure();
  7046. }
  7047. /**
  7048. * Determine if the request contains a given input item.
  7049. *
  7050. * @param string|array $key
  7051. * @return bool
  7052. * @static
  7053. */
  7054. public static function has($key){
  7055. return Illuminate\Http\Request::has($key);
  7056. }
  7057. /**
  7058. * Get all of the input and files for the request.
  7059. *
  7060. * @return array
  7061. * @static
  7062. */
  7063. public static function all(){
  7064. return Illuminate\Http\Request::all();
  7065. }
  7066. /**
  7067. * Retrieve an input item from the request.
  7068. *
  7069. * @param string $key
  7070. * @param mixed $default
  7071. * @return string
  7072. * @static
  7073. */
  7074. public static function input($key = null, $default = null){
  7075. return Illuminate\Http\Request::input($key, $default);
  7076. }
  7077. /**
  7078. * Get a subset of the items from the input data.
  7079. *
  7080. * @param array $keys
  7081. * @return array
  7082. * @static
  7083. */
  7084. public static function only($keys){
  7085. return Illuminate\Http\Request::only($keys);
  7086. }
  7087. /**
  7088. * Get all of the input except for a specified array of items.
  7089. *
  7090. * @param array $keys
  7091. * @return array
  7092. * @static
  7093. */
  7094. public static function except($keys){
  7095. return Illuminate\Http\Request::except($keys);
  7096. }
  7097. /**
  7098. * Retrieve a query string item from the request.
  7099. *
  7100. * @param string $key
  7101. * @param mixed $default
  7102. * @return string
  7103. * @static
  7104. */
  7105. public static function query($key = null, $default = null){
  7106. return Illuminate\Http\Request::query($key, $default);
  7107. }
  7108. /**
  7109. * Retrieve a cookie from the request.
  7110. *
  7111. * @param string $key
  7112. * @param mixed $default
  7113. * @return string
  7114. * @static
  7115. */
  7116. public static function cookie($key = null, $default = null){
  7117. return Illuminate\Http\Request::cookie($key, $default);
  7118. }
  7119. /**
  7120. * Retrieve a file from the request.
  7121. *
  7122. * @param string $key
  7123. * @param mixed $default
  7124. * @return \Symfony\Component\HttpFoundation\File\UploadedFile|array
  7125. * @static
  7126. */
  7127. public static function file($key = null, $default = null){
  7128. return Illuminate\Http\Request::file($key, $default);
  7129. }
  7130. /**
  7131. * Determine if the uploaded data contains a file.
  7132. *
  7133. * @param string $key
  7134. * @return bool
  7135. * @static
  7136. */
  7137. public static function hasFile($key){
  7138. return Illuminate\Http\Request::hasFile($key);
  7139. }
  7140. /**
  7141. * Retrieve a header from the request.
  7142. *
  7143. * @param string $key
  7144. * @param mixed $default
  7145. * @return string
  7146. * @static
  7147. */
  7148. public static function header($key = null, $default = null){
  7149. return Illuminate\Http\Request::header($key, $default);
  7150. }
  7151. /**
  7152. * Retrieve a server variable from the request.
  7153. *
  7154. * @param string $key
  7155. * @param mixed $default
  7156. * @return string
  7157. * @static
  7158. */
  7159. public static function server($key = null, $default = null){
  7160. return Illuminate\Http\Request::server($key, $default);
  7161. }
  7162. /**
  7163. * Retrieve an old input item.
  7164. *
  7165. * @param string $key
  7166. * @param mixed $default
  7167. * @return mixed
  7168. * @static
  7169. */
  7170. public static function old($key = null, $default = null){
  7171. return Illuminate\Http\Request::old($key, $default);
  7172. }
  7173. /**
  7174. * Flash the input for the current request to the session.
  7175. *
  7176. * @param string $filter
  7177. * @param array $keys
  7178. * @return void
  7179. * @static
  7180. */
  7181. public static function flash($filter = null, $keys = array()){
  7182. Illuminate\Http\Request::flash($filter, $keys);
  7183. }
  7184. /**
  7185. * Flash only some of the input to the session.
  7186. *
  7187. * @param dynamic string
  7188. * @return void
  7189. * @static
  7190. */
  7191. public static function flashOnly($keys){
  7192. Illuminate\Http\Request::flashOnly($keys);
  7193. }
  7194. /**
  7195. * Flash only some of the input to the session.
  7196. *
  7197. * @param dynamic string
  7198. * @return void
  7199. * @static
  7200. */
  7201. public static function flashExcept($keys){
  7202. Illuminate\Http\Request::flashExcept($keys);
  7203. }
  7204. /**
  7205. * Flush all of the old input from the session.
  7206. *
  7207. * @return void
  7208. * @static
  7209. */
  7210. public static function flush(){
  7211. Illuminate\Http\Request::flush();
  7212. }
  7213. /**
  7214. * Merge new input into the current request's input array.
  7215. *
  7216. * @param array $input
  7217. * @return void
  7218. * @static
  7219. */
  7220. public static function merge($input){
  7221. Illuminate\Http\Request::merge($input);
  7222. }
  7223. /**
  7224. * Replace the input for the current request.
  7225. *
  7226. * @param array $input
  7227. * @return void
  7228. * @static
  7229. */
  7230. public static function replace($input){
  7231. Illuminate\Http\Request::replace($input);
  7232. }
  7233. /**
  7234. * Get the JSON payload for the request.
  7235. *
  7236. * @param string $key
  7237. * @param mixed $default
  7238. * @return mixed
  7239. * @static
  7240. */
  7241. public static function json($key = null, $default = null){
  7242. return Illuminate\Http\Request::json($key, $default);
  7243. }
  7244. /**
  7245. * Determine if the request is sending JSON.
  7246. *
  7247. * @return bool
  7248. * @static
  7249. */
  7250. public static function isJson(){
  7251. return Illuminate\Http\Request::isJson();
  7252. }
  7253. /**
  7254. * Determine if the current request is asking for JSON in return.
  7255. *
  7256. * @return bool
  7257. * @static
  7258. */
  7259. public static function wantsJson(){
  7260. return Illuminate\Http\Request::wantsJson();
  7261. }
  7262. /**
  7263. * Get the data format expected in the response.
  7264. *
  7265. * @return string
  7266. * @static
  7267. */
  7268. public static function format($default = 'html'){
  7269. return Illuminate\Http\Request::format($default);
  7270. }
  7271. /**
  7272. * Get the Illuminate session store implementation.
  7273. *
  7274. * @return \Illuminate\Session\Store
  7275. * @static
  7276. */
  7277. public static function getSessionStore(){
  7278. return Illuminate\Http\Request::getSessionStore();
  7279. }
  7280. /**
  7281. * Set the Illuminate session store implementation.
  7282. *
  7283. * @param \Illuminate\Session\Store $session
  7284. * @return void
  7285. * @static
  7286. */
  7287. public static function setSessionStore($session){
  7288. Illuminate\Http\Request::setSessionStore($session);
  7289. }
  7290. /**
  7291. * Determine if the session store has been set.
  7292. *
  7293. * @return bool
  7294. * @static
  7295. */
  7296. public static function hasSessionStore(){
  7297. return Illuminate\Http\Request::hasSessionStore();
  7298. }
  7299. /**
  7300. * Constructor.
  7301. *
  7302. * @param array $query The GET parameters
  7303. * @param array $request The POST parameters
  7304. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7305. * @param array $cookies The COOKIE parameters
  7306. * @param array $files The FILES parameters
  7307. * @param array $server The SERVER parameters
  7308. * @param string $content The raw body data
  7309. * @api
  7310. * @static
  7311. */
  7312. public static function __construct($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  7313. //Method inherited from Symfony\Component\HttpFoundation\Request
  7314. Illuminate\Http\Request::__construct($query, $request, $attributes, $cookies, $files, $server, $content);
  7315. }
  7316. /**
  7317. * Sets the parameters for this request.
  7318. *
  7319. * This method also re-initializes all properties.
  7320. *
  7321. * @param array $query The GET parameters
  7322. * @param array $request The POST parameters
  7323. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7324. * @param array $cookies The COOKIE parameters
  7325. * @param array $files The FILES parameters
  7326. * @param array $server The SERVER parameters
  7327. * @param string $content The raw body data
  7328. * @api
  7329. * @static
  7330. */
  7331. public static function initialize($query = array(), $request = array(), $attributes = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  7332. //Method inherited from Symfony\Component\HttpFoundation\Request
  7333. Illuminate\Http\Request::initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7334. }
  7335. /**
  7336. * Creates a new request with values from PHP's super globals.
  7337. *
  7338. * @return Request A new request
  7339. * @api
  7340. * @static
  7341. */
  7342. public static function createFromGlobals(){
  7343. //Method inherited from Symfony\Component\HttpFoundation\Request
  7344. return Illuminate\Http\Request::createFromGlobals();
  7345. }
  7346. /**
  7347. * Creates a Request based on a given URI and configuration.
  7348. *
  7349. * The information contained in the URI always take precedence
  7350. * over the other information (server and parameters).
  7351. *
  7352. * @param string $uri The URI
  7353. * @param string $method The HTTP method
  7354. * @param array $parameters The query (GET) or request (POST) parameters
  7355. * @param array $cookies The request cookies ($_COOKIE)
  7356. * @param array $files The request files ($_FILES)
  7357. * @param array $server The server parameters ($_SERVER)
  7358. * @param string $content The raw body data
  7359. * @return Request A Request instance
  7360. * @api
  7361. * @static
  7362. */
  7363. public static function create($uri, $method = 'GET', $parameters = array(), $cookies = array(), $files = array(), $server = array(), $content = null){
  7364. //Method inherited from Symfony\Component\HttpFoundation\Request
  7365. return Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7366. }
  7367. /**
  7368. * Clones a request and overrides some of its parameters.
  7369. *
  7370. * @param array $query The GET parameters
  7371. * @param array $request The POST parameters
  7372. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7373. * @param array $cookies The COOKIE parameters
  7374. * @param array $files The FILES parameters
  7375. * @param array $server The SERVER parameters
  7376. * @return Request The duplicated request
  7377. * @api
  7378. * @static
  7379. */
  7380. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null){
  7381. //Method inherited from Symfony\Component\HttpFoundation\Request
  7382. return Illuminate\Http\Request::duplicate($query, $request, $attributes, $cookies, $files, $server);
  7383. }
  7384. /**
  7385. * Returns the request as a string.
  7386. *
  7387. * @return string The request
  7388. * @static
  7389. */
  7390. public static function __toString(){
  7391. //Method inherited from Symfony\Component\HttpFoundation\Request
  7392. return Illuminate\Http\Request::__toString();
  7393. }
  7394. /**
  7395. * Overrides the PHP global variables according to this request instance.
  7396. *
  7397. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7398. * $_FILES is never override, see rfc1867
  7399. *
  7400. * @api
  7401. * @static
  7402. */
  7403. public static function overrideGlobals(){
  7404. //Method inherited from Symfony\Component\HttpFoundation\Request
  7405. Illuminate\Http\Request::overrideGlobals();
  7406. }
  7407. /**
  7408. * Sets a list of trusted proxies.
  7409. *
  7410. * You should only list the reverse proxies that you manage directly.
  7411. *
  7412. * @param array $proxies A list of trusted proxies
  7413. * @api
  7414. * @static
  7415. */
  7416. public static function setTrustedProxies($proxies){
  7417. //Method inherited from Symfony\Component\HttpFoundation\Request
  7418. Illuminate\Http\Request::setTrustedProxies($proxies);
  7419. }
  7420. /**
  7421. * Gets the list of trusted proxies.
  7422. *
  7423. * @return array An array of trusted proxies.
  7424. * @static
  7425. */
  7426. public static function getTrustedProxies(){
  7427. //Method inherited from Symfony\Component\HttpFoundation\Request
  7428. return Illuminate\Http\Request::getTrustedProxies();
  7429. }
  7430. /**
  7431. * Sets a list of trusted host patterns.
  7432. *
  7433. * You should only list the hosts you manage using regexs.
  7434. *
  7435. * @param array $hostPatterns A list of trusted host patterns
  7436. * @static
  7437. */
  7438. public static function setTrustedHosts($hostPatterns){
  7439. //Method inherited from Symfony\Component\HttpFoundation\Request
  7440. Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7441. }
  7442. /**
  7443. * Gets the list of trusted host patterns.
  7444. *
  7445. * @return array An array of trusted host patterns.
  7446. * @static
  7447. */
  7448. public static function getTrustedHosts(){
  7449. //Method inherited from Symfony\Component\HttpFoundation\Request
  7450. return Illuminate\Http\Request::getTrustedHosts();
  7451. }
  7452. /**
  7453. * Sets the name for trusted headers.
  7454. *
  7455. * The following header keys are supported:
  7456. *
  7457. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7458. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getClientHost())
  7459. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getClientPort())
  7460. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7461. *
  7462. * Setting an empty value allows to disable the trusted header for the given key.
  7463. *
  7464. * @param string $key The header key
  7465. * @param string $value The header name
  7466. * @throws \InvalidArgumentException
  7467. * @static
  7468. */
  7469. public static function setTrustedHeaderName($key, $value){
  7470. //Method inherited from Symfony\Component\HttpFoundation\Request
  7471. Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7472. }
  7473. /**
  7474. * Gets the trusted proxy header name.
  7475. *
  7476. * @param string $key The header key
  7477. * @return string The header name
  7478. * @throws \InvalidArgumentException
  7479. * @static
  7480. */
  7481. public static function getTrustedHeaderName($key){
  7482. //Method inherited from Symfony\Component\HttpFoundation\Request
  7483. return Illuminate\Http\Request::getTrustedHeaderName($key);
  7484. }
  7485. /**
  7486. * Normalizes a query string.
  7487. *
  7488. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7489. * have consistent escaping and unneeded delimiters are removed.
  7490. *
  7491. * @param string $qs Query string
  7492. * @return string A normalized query string for the Request
  7493. * @static
  7494. */
  7495. public static function normalizeQueryString($qs){
  7496. //Method inherited from Symfony\Component\HttpFoundation\Request
  7497. return Illuminate\Http\Request::normalizeQueryString($qs);
  7498. }
  7499. /**
  7500. * Enables support for the _method request parameter to determine the intended HTTP method.
  7501. *
  7502. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7503. * Check that you are using CSRF tokens when required.
  7504. *
  7505. * The HTTP method can only be overridden when the real HTTP method is POST.
  7506. *
  7507. * @static
  7508. */
  7509. public static function enableHttpMethodParameterOverride(){
  7510. //Method inherited from Symfony\Component\HttpFoundation\Request
  7511. Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7512. }
  7513. /**
  7514. * Checks whether support for the _method request parameter is enabled.
  7515. *
  7516. * @return Boolean True when the _method request parameter is enabled, false otherwise
  7517. * @static
  7518. */
  7519. public static function getHttpMethodParameterOverride(){
  7520. //Method inherited from Symfony\Component\HttpFoundation\Request
  7521. return Illuminate\Http\Request::getHttpMethodParameterOverride();
  7522. }
  7523. /**
  7524. * Gets a "parameter" value.
  7525. *
  7526. * This method is mainly useful for libraries that want to provide some flexibility.
  7527. *
  7528. * Order of precedence: GET, PATH, POST
  7529. *
  7530. * Avoid using this method in controllers:
  7531. *
  7532. * * slow
  7533. * * prefer to get from a "named" source
  7534. *
  7535. * It is better to explicitly get request parameters from the appropriate
  7536. * public property instead (query, attributes, request).
  7537. *
  7538. * @param string $key the key
  7539. * @param mixed $default the default value
  7540. * @param Boolean $deep is parameter deep in multidimensional array
  7541. * @return mixed
  7542. * @static
  7543. */
  7544. public static function get($key, $default = null, $deep = false){
  7545. //Method inherited from Symfony\Component\HttpFoundation\Request
  7546. return Illuminate\Http\Request::get($key, $default, $deep);
  7547. }
  7548. /**
  7549. * Gets the Session.
  7550. *
  7551. * @return SessionInterface|null The session
  7552. * @api
  7553. * @static
  7554. */
  7555. public static function getSession(){
  7556. //Method inherited from Symfony\Component\HttpFoundation\Request
  7557. return Illuminate\Http\Request::getSession();
  7558. }
  7559. /**
  7560. * Whether the request contains a Session which was started in one of the
  7561. * previous requests.
  7562. *
  7563. * @return Boolean
  7564. * @api
  7565. * @static
  7566. */
  7567. public static function hasPreviousSession(){
  7568. //Method inherited from Symfony\Component\HttpFoundation\Request
  7569. return Illuminate\Http\Request::hasPreviousSession();
  7570. }
  7571. /**
  7572. * Whether the request contains a Session object.
  7573. *
  7574. * This method does not give any information about the state of the session object,
  7575. * like whether the session is started or not. It is just a way to check if this Request
  7576. * is associated with a Session instance.
  7577. *
  7578. * @return Boolean true when the Request contains a Session object, false otherwise
  7579. * @api
  7580. * @static
  7581. */
  7582. public static function hasSession(){
  7583. //Method inherited from Symfony\Component\HttpFoundation\Request
  7584. return Illuminate\Http\Request::hasSession();
  7585. }
  7586. /**
  7587. * Sets the Session.
  7588. *
  7589. * @param SessionInterface $session The Session
  7590. * @api
  7591. * @static
  7592. */
  7593. public static function setSession($session){
  7594. //Method inherited from Symfony\Component\HttpFoundation\Request
  7595. Illuminate\Http\Request::setSession($session);
  7596. }
  7597. /**
  7598. * Returns the client IP addresses.
  7599. *
  7600. * The least trusted IP address is first, and the most trusted one last.
  7601. * The "real" client IP address is the first one, but this is also the
  7602. * least trusted one.
  7603. *
  7604. * Use this method carefully; you should use getClientIp() instead.
  7605. *
  7606. * @return array The client IP addresses
  7607. * @see getClientIp()
  7608. * @static
  7609. */
  7610. public static function getClientIps(){
  7611. //Method inherited from Symfony\Component\HttpFoundation\Request
  7612. return Illuminate\Http\Request::getClientIps();
  7613. }
  7614. /**
  7615. * Returns the client IP address.
  7616. *
  7617. * This method can read the client IP address from the "X-Forwarded-For" header
  7618. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7619. * header value is a comma+space separated list of IP addresses, the left-most
  7620. * being the original client, and each successive proxy that passed the request
  7621. * adding the IP address where it received the request from.
  7622. *
  7623. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7624. * ("Client-Ip" for instance), configure it via "setTrustedHeaderName()" with
  7625. * the "client-ip" key.
  7626. *
  7627. * @return string The client IP address
  7628. * @see getClientIps()
  7629. * @see http://en.wikipedia.org/wiki/X-Forwarded-For
  7630. * @api
  7631. * @static
  7632. */
  7633. public static function getClientIp(){
  7634. //Method inherited from Symfony\Component\HttpFoundation\Request
  7635. return Illuminate\Http\Request::getClientIp();
  7636. }
  7637. /**
  7638. * Returns current script name.
  7639. *
  7640. * @return string
  7641. * @api
  7642. * @static
  7643. */
  7644. public static function getScriptName(){
  7645. //Method inherited from Symfony\Component\HttpFoundation\Request
  7646. return Illuminate\Http\Request::getScriptName();
  7647. }
  7648. /**
  7649. * Returns the path being requested relative to the executed script.
  7650. *
  7651. * The path info always starts with a /.
  7652. *
  7653. * Suppose this request is instantiated from /mysite on localhost:
  7654. *
  7655. * * http://localhost/mysite returns an empty string
  7656. * * http://localhost/mysite/about returns '/about'
  7657. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  7658. * * http://localhost/mysite/about?var=1 returns '/about'
  7659. *
  7660. * @return string The raw path (i.e. not urldecoded)
  7661. * @api
  7662. * @static
  7663. */
  7664. public static function getPathInfo(){
  7665. //Method inherited from Symfony\Component\HttpFoundation\Request
  7666. return Illuminate\Http\Request::getPathInfo();
  7667. }
  7668. /**
  7669. * Returns the root path from which this request is executed.
  7670. *
  7671. * Suppose that an index.php file instantiates this request object:
  7672. *
  7673. * * http://localhost/index.php returns an empty string
  7674. * * http://localhost/index.php/page returns an empty string
  7675. * * http://localhost/web/index.php returns '/web'
  7676. * * http://localhost/we%20b/index.php returns '/we%20b'
  7677. *
  7678. * @return string The raw path (i.e. not urldecoded)
  7679. * @api
  7680. * @static
  7681. */
  7682. public static function getBasePath(){
  7683. //Method inherited from Symfony\Component\HttpFoundation\Request
  7684. return Illuminate\Http\Request::getBasePath();
  7685. }
  7686. /**
  7687. * Returns the root url from which this request is executed.
  7688. *
  7689. * The base URL never ends with a /.
  7690. *
  7691. * This is similar to getBasePath(), except that it also includes the
  7692. * script filename (e.g. index.php) if one exists.
  7693. *
  7694. * @return string The raw url (i.e. not urldecoded)
  7695. * @api
  7696. * @static
  7697. */
  7698. public static function getBaseUrl(){
  7699. //Method inherited from Symfony\Component\HttpFoundation\Request
  7700. return Illuminate\Http\Request::getBaseUrl();
  7701. }
  7702. /**
  7703. * Gets the request's scheme.
  7704. *
  7705. * @return string
  7706. * @api
  7707. * @static
  7708. */
  7709. public static function getScheme(){
  7710. //Method inherited from Symfony\Component\HttpFoundation\Request
  7711. return Illuminate\Http\Request::getScheme();
  7712. }
  7713. /**
  7714. * Returns the port on which the request is made.
  7715. *
  7716. * This method can read the client port from the "X-Forwarded-Port" header
  7717. * when trusted proxies were set via "setTrustedProxies()".
  7718. *
  7719. * The "X-Forwarded-Port" header must contain the client port.
  7720. *
  7721. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  7722. * configure it via "setTrustedHeaderName()" with the "client-port" key.
  7723. *
  7724. * @return string
  7725. * @api
  7726. * @static
  7727. */
  7728. public static function getPort(){
  7729. //Method inherited from Symfony\Component\HttpFoundation\Request
  7730. return Illuminate\Http\Request::getPort();
  7731. }
  7732. /**
  7733. * Returns the user.
  7734. *
  7735. * @return string|null
  7736. * @static
  7737. */
  7738. public static function getUser(){
  7739. //Method inherited from Symfony\Component\HttpFoundation\Request
  7740. return Illuminate\Http\Request::getUser();
  7741. }
  7742. /**
  7743. * Returns the password.
  7744. *
  7745. * @return string|null
  7746. * @static
  7747. */
  7748. public static function getPassword(){
  7749. //Method inherited from Symfony\Component\HttpFoundation\Request
  7750. return Illuminate\Http\Request::getPassword();
  7751. }
  7752. /**
  7753. * Gets the user info.
  7754. *
  7755. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  7756. * @static
  7757. */
  7758. public static function getUserInfo(){
  7759. //Method inherited from Symfony\Component\HttpFoundation\Request
  7760. return Illuminate\Http\Request::getUserInfo();
  7761. }
  7762. /**
  7763. * Returns the HTTP host being requested.
  7764. *
  7765. * The port name will be appended to the host if it's non-standard.
  7766. *
  7767. * @return string
  7768. * @api
  7769. * @static
  7770. */
  7771. public static function getHttpHost(){
  7772. //Method inherited from Symfony\Component\HttpFoundation\Request
  7773. return Illuminate\Http\Request::getHttpHost();
  7774. }
  7775. /**
  7776. * Returns the requested URI.
  7777. *
  7778. * @return string The raw URI (i.e. not urldecoded)
  7779. * @api
  7780. * @static
  7781. */
  7782. public static function getRequestUri(){
  7783. //Method inherited from Symfony\Component\HttpFoundation\Request
  7784. return Illuminate\Http\Request::getRequestUri();
  7785. }
  7786. /**
  7787. * Gets the scheme and HTTP host.
  7788. *
  7789. * If the URL was called with basic authentication, the user
  7790. * and the password are not added to the generated string.
  7791. *
  7792. * @return string The scheme and HTTP host
  7793. * @static
  7794. */
  7795. public static function getSchemeAndHttpHost(){
  7796. //Method inherited from Symfony\Component\HttpFoundation\Request
  7797. return Illuminate\Http\Request::getSchemeAndHttpHost();
  7798. }
  7799. /**
  7800. * Generates a normalized URI for the Request.
  7801. *
  7802. * @return string A normalized URI for the Request
  7803. * @see getQueryString()
  7804. * @api
  7805. * @static
  7806. */
  7807. public static function getUri(){
  7808. //Method inherited from Symfony\Component\HttpFoundation\Request
  7809. return Illuminate\Http\Request::getUri();
  7810. }
  7811. /**
  7812. * Generates a normalized URI for the given path.
  7813. *
  7814. * @param string $path A path to use instead of the current one
  7815. * @return string The normalized URI for the path
  7816. * @api
  7817. * @static
  7818. */
  7819. public static function getUriForPath($path){
  7820. //Method inherited from Symfony\Component\HttpFoundation\Request
  7821. return Illuminate\Http\Request::getUriForPath($path);
  7822. }
  7823. /**
  7824. * Generates the normalized query string for the Request.
  7825. *
  7826. * It builds a normalized query string, where keys/value pairs are alphabetized
  7827. * and have consistent escaping.
  7828. *
  7829. * @return string|null A normalized query string for the Request
  7830. * @api
  7831. * @static
  7832. */
  7833. public static function getQueryString(){
  7834. //Method inherited from Symfony\Component\HttpFoundation\Request
  7835. return Illuminate\Http\Request::getQueryString();
  7836. }
  7837. /**
  7838. * Checks whether the request is secure or not.
  7839. *
  7840. * This method can read the client port from the "X-Forwarded-Proto" header
  7841. * when trusted proxies were set via "setTrustedProxies()".
  7842. *
  7843. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  7844. *
  7845. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  7846. * ("SSL_HTTPS" for instance), configure it via "setTrustedHeaderName()" with
  7847. * the "client-proto" key.
  7848. *
  7849. * @return Boolean
  7850. * @api
  7851. * @static
  7852. */
  7853. public static function isSecure(){
  7854. //Method inherited from Symfony\Component\HttpFoundation\Request
  7855. return Illuminate\Http\Request::isSecure();
  7856. }
  7857. /**
  7858. * Returns the host name.
  7859. *
  7860. * This method can read the client port from the "X-Forwarded-Host" header
  7861. * when trusted proxies were set via "setTrustedProxies()".
  7862. *
  7863. * The "X-Forwarded-Host" header must contain the client host name.
  7864. *
  7865. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  7866. * configure it via "setTrustedHeaderName()" with the "client-host" key.
  7867. *
  7868. * @return string
  7869. * @throws \UnexpectedValueException when the host name is invalid
  7870. * @api
  7871. * @static
  7872. */
  7873. public static function getHost(){
  7874. //Method inherited from Symfony\Component\HttpFoundation\Request
  7875. return Illuminate\Http\Request::getHost();
  7876. }
  7877. /**
  7878. * Sets the request method.
  7879. *
  7880. * @param string $method
  7881. * @api
  7882. * @static
  7883. */
  7884. public static function setMethod($method){
  7885. //Method inherited from Symfony\Component\HttpFoundation\Request
  7886. Illuminate\Http\Request::setMethod($method);
  7887. }
  7888. /**
  7889. * Gets the request "intended" method.
  7890. *
  7891. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  7892. * then it is used to determine the "real" intended HTTP method.
  7893. *
  7894. * The _method request parameter can also be used to determine the HTTP method,
  7895. * but only if enableHttpMethodParameterOverride() has been called.
  7896. *
  7897. * The method is always an uppercased string.
  7898. *
  7899. * @return string The request method
  7900. * @api
  7901. * @see getRealMethod
  7902. * @static
  7903. */
  7904. public static function getMethod(){
  7905. //Method inherited from Symfony\Component\HttpFoundation\Request
  7906. return Illuminate\Http\Request::getMethod();
  7907. }
  7908. /**
  7909. * Gets the "real" request method.
  7910. *
  7911. * @return string The request method
  7912. * @see getMethod
  7913. * @static
  7914. */
  7915. public static function getRealMethod(){
  7916. //Method inherited from Symfony\Component\HttpFoundation\Request
  7917. return Illuminate\Http\Request::getRealMethod();
  7918. }
  7919. /**
  7920. * Gets the mime type associated with the format.
  7921. *
  7922. * @param string $format The format
  7923. * @return string The associated mime type (null if not found)
  7924. * @api
  7925. * @static
  7926. */
  7927. public static function getMimeType($format){
  7928. //Method inherited from Symfony\Component\HttpFoundation\Request
  7929. return Illuminate\Http\Request::getMimeType($format);
  7930. }
  7931. /**
  7932. * Gets the format associated with the mime type.
  7933. *
  7934. * @param string $mimeType The associated mime type
  7935. * @return string|null The format (null if not found)
  7936. * @api
  7937. * @static
  7938. */
  7939. public static function getFormat($mimeType){
  7940. //Method inherited from Symfony\Component\HttpFoundation\Request
  7941. return Illuminate\Http\Request::getFormat($mimeType);
  7942. }
  7943. /**
  7944. * Associates a format with mime types.
  7945. *
  7946. * @param string $format The format
  7947. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  7948. * @api
  7949. * @static
  7950. */
  7951. public static function setFormat($format, $mimeTypes){
  7952. //Method inherited from Symfony\Component\HttpFoundation\Request
  7953. Illuminate\Http\Request::setFormat($format, $mimeTypes);
  7954. }
  7955. /**
  7956. * Gets the request format.
  7957. *
  7958. * Here is the process to determine the format:
  7959. *
  7960. * * format defined by the user (with setRequestFormat())
  7961. * * _format request parameter
  7962. * * $default
  7963. *
  7964. * @param string $default The default format
  7965. * @return string The request format
  7966. * @api
  7967. * @static
  7968. */
  7969. public static function getRequestFormat($default = 'html'){
  7970. //Method inherited from Symfony\Component\HttpFoundation\Request
  7971. return Illuminate\Http\Request::getRequestFormat($default);
  7972. }
  7973. /**
  7974. * Sets the request format.
  7975. *
  7976. * @param string $format The request format.
  7977. * @api
  7978. * @static
  7979. */
  7980. public static function setRequestFormat($format){
  7981. //Method inherited from Symfony\Component\HttpFoundation\Request
  7982. Illuminate\Http\Request::setRequestFormat($format);
  7983. }
  7984. /**
  7985. * Gets the format associated with the request.
  7986. *
  7987. * @return string|null The format (null if no content type is present)
  7988. * @api
  7989. * @static
  7990. */
  7991. public static function getContentType(){
  7992. //Method inherited from Symfony\Component\HttpFoundation\Request
  7993. return Illuminate\Http\Request::getContentType();
  7994. }
  7995. /**
  7996. * Sets the default locale.
  7997. *
  7998. * @param string $locale
  7999. * @api
  8000. * @static
  8001. */
  8002. public static function setDefaultLocale($locale){
  8003. //Method inherited from Symfony\Component\HttpFoundation\Request
  8004. Illuminate\Http\Request::setDefaultLocale($locale);
  8005. }
  8006. /**
  8007. * Sets the locale.
  8008. *
  8009. * @param string $locale
  8010. * @api
  8011. * @static
  8012. */
  8013. public static function setLocale($locale){
  8014. //Method inherited from Symfony\Component\HttpFoundation\Request
  8015. Illuminate\Http\Request::setLocale($locale);
  8016. }
  8017. /**
  8018. * Get the locale.
  8019. *
  8020. * @return string
  8021. * @static
  8022. */
  8023. public static function getLocale(){
  8024. //Method inherited from Symfony\Component\HttpFoundation\Request
  8025. return Illuminate\Http\Request::getLocale();
  8026. }
  8027. /**
  8028. * Checks if the request method is of specified type.
  8029. *
  8030. * @param string $method Uppercase request method (GET, POST etc).
  8031. * @return Boolean
  8032. * @static
  8033. */
  8034. public static function isMethod($method){
  8035. //Method inherited from Symfony\Component\HttpFoundation\Request
  8036. return Illuminate\Http\Request::isMethod($method);
  8037. }
  8038. /**
  8039. * Checks whether the method is safe or not.
  8040. *
  8041. * @return Boolean
  8042. * @api
  8043. * @static
  8044. */
  8045. public static function isMethodSafe(){
  8046. //Method inherited from Symfony\Component\HttpFoundation\Request
  8047. return Illuminate\Http\Request::isMethodSafe();
  8048. }
  8049. /**
  8050. * Returns the request body content.
  8051. *
  8052. * @param Boolean $asResource If true, a resource will be returned
  8053. * @return string|resource The request body content or a resource to read the body stream.
  8054. * @throws \LogicException
  8055. * @static
  8056. */
  8057. public static function getContent($asResource = false){
  8058. //Method inherited from Symfony\Component\HttpFoundation\Request
  8059. return Illuminate\Http\Request::getContent($asResource);
  8060. }
  8061. /**
  8062. * Gets the Etags.
  8063. *
  8064. * @return array The entity tags
  8065. * @static
  8066. */
  8067. public static function getETags(){
  8068. //Method inherited from Symfony\Component\HttpFoundation\Request
  8069. return Illuminate\Http\Request::getETags();
  8070. }
  8071. /**
  8072. *
  8073. *
  8074. * @return Boolean
  8075. * @static
  8076. */
  8077. public static function isNoCache(){
  8078. //Method inherited from Symfony\Component\HttpFoundation\Request
  8079. return Illuminate\Http\Request::isNoCache();
  8080. }
  8081. /**
  8082. * Returns the preferred language.
  8083. *
  8084. * @param array $locales An array of ordered available locales
  8085. * @return string|null The preferred locale
  8086. * @api
  8087. * @static
  8088. */
  8089. public static function getPreferredLanguage($locales = null){
  8090. //Method inherited from Symfony\Component\HttpFoundation\Request
  8091. return Illuminate\Http\Request::getPreferredLanguage($locales);
  8092. }
  8093. /**
  8094. * Gets a list of languages acceptable by the client browser.
  8095. *
  8096. * @return array Languages ordered in the user browser preferences
  8097. * @api
  8098. * @static
  8099. */
  8100. public static function getLanguages(){
  8101. //Method inherited from Symfony\Component\HttpFoundation\Request
  8102. return Illuminate\Http\Request::getLanguages();
  8103. }
  8104. /**
  8105. * Gets a list of charsets acceptable by the client browser.
  8106. *
  8107. * @return array List of charsets in preferable order
  8108. * @api
  8109. * @static
  8110. */
  8111. public static function getCharsets(){
  8112. //Method inherited from Symfony\Component\HttpFoundation\Request
  8113. return Illuminate\Http\Request::getCharsets();
  8114. }
  8115. /**
  8116. * Gets a list of content types acceptable by the client browser
  8117. *
  8118. * @return array List of content types in preferable order
  8119. * @api
  8120. * @static
  8121. */
  8122. public static function getAcceptableContentTypes(){
  8123. //Method inherited from Symfony\Component\HttpFoundation\Request
  8124. return Illuminate\Http\Request::getAcceptableContentTypes();
  8125. }
  8126. /**
  8127. * Returns true if the request is a XMLHttpRequest.
  8128. *
  8129. * It works if your JavaScript library set an X-Requested-With HTTP header.
  8130. * It is known to work with common JavaScript frameworks:
  8131. *
  8132. * @link http://en.wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8133. * @return Boolean true if the request is an XMLHttpRequest, false otherwise
  8134. * @api
  8135. * @static
  8136. */
  8137. public static function isXmlHttpRequest(){
  8138. //Method inherited from Symfony\Component\HttpFoundation\Request
  8139. return Illuminate\Http\Request::isXmlHttpRequest();
  8140. }
  8141. }
  8142. class Response extends Illuminate\Support\Facades\Response{
  8143. }
  8144. class Route extends Illuminate\Support\Facades\Route{
  8145. /**
  8146. * Create a new router instance.
  8147. *
  8148. * @param \Illuminate\Container\Container $container
  8149. * @return void
  8150. * @static
  8151. */
  8152. public static function __construct($container = null){
  8153. Illuminate\Routing\Router::__construct($container);
  8154. }
  8155. /**
  8156. * Add a new route to the collection.
  8157. *
  8158. * @param string $pattern
  8159. * @param mixed $action
  8160. * @return \Illuminate\Routing\Route
  8161. * @static
  8162. */
  8163. public static function get($pattern, $action){
  8164. return Illuminate\Routing\Router::get($pattern, $action);
  8165. }
  8166. /**
  8167. * Add a new route to the collection.
  8168. *
  8169. * @param string $pattern
  8170. * @param mixed $action
  8171. * @return \Illuminate\Routing\Route
  8172. * @static
  8173. */
  8174. public static function post($pattern, $action){
  8175. return Illuminate\Routing\Router::post($pattern, $action);
  8176. }
  8177. /**
  8178. * Add a new route to the collection.
  8179. *
  8180. * @param string $pattern
  8181. * @param mixed $action
  8182. * @return \Illuminate\Routing\Route
  8183. * @static
  8184. */
  8185. public static function put($pattern, $action){
  8186. return Illuminate\Routing\Router::put($pattern, $action);
  8187. }
  8188. /**
  8189. * Add a new route to the collection.
  8190. *
  8191. * @param string $pattern
  8192. * @param mixed $action
  8193. * @return \Illuminate\Routing\Route
  8194. * @static
  8195. */
  8196. public static function patch($pattern, $action){
  8197. return Illuminate\Routing\Router::patch($pattern, $action);
  8198. }
  8199. /**
  8200. * Add a new route to the collection.
  8201. *
  8202. * @param string $pattern
  8203. * @param mixed $action
  8204. * @return \Illuminate\Routing\Route
  8205. * @static
  8206. */
  8207. public static function delete($pattern, $action){
  8208. return Illuminate\Routing\Router::delete($pattern, $action);
  8209. }
  8210. /**
  8211. * Add a new route to the collection.
  8212. *
  8213. * @param string $pattern
  8214. * @param mixed $action
  8215. * @return \Illuminate\Routing\Route
  8216. * @static
  8217. */
  8218. public static function options($pattern, $action){
  8219. return Illuminate\Routing\Router::options($pattern, $action);
  8220. }
  8221. /**
  8222. * Add a new route to the collection.
  8223. *
  8224. * @param string $method
  8225. * @param string $pattern
  8226. * @param mixed $action
  8227. * @return \Illuminate\Routing\Route
  8228. * @static
  8229. */
  8230. public static function match($method, $pattern, $action){
  8231. return Illuminate\Routing\Router::match($method, $pattern, $action);
  8232. }
  8233. /**
  8234. * Add a new route to the collection.
  8235. *
  8236. * @param string $pattern
  8237. * @param mixed $action
  8238. * @return \Illuminate\Routing\Route
  8239. * @static
  8240. */
  8241. public static function any($pattern, $action){
  8242. return Illuminate\Routing\Router::any($pattern, $action);
  8243. }
  8244. /**
  8245. * Register an array of controllers with wildcard routing.
  8246. *
  8247. * @param array $controllers
  8248. * @return void
  8249. * @static
  8250. */
  8251. public static function controllers($controllers){
  8252. Illuminate\Routing\Router::controllers($controllers);
  8253. }
  8254. /**
  8255. * Route a controller to a URI with wildcard routing.
  8256. *
  8257. * @param string $uri
  8258. * @param string $controller
  8259. * @param array $names
  8260. * @return \Illuminate\Routing\Route
  8261. * @static
  8262. */
  8263. public static function controller($uri, $controller, $names = array()){
  8264. return Illuminate\Routing\Router::controller($uri, $controller, $names);
  8265. }
  8266. /**
  8267. * Route a resource to a controller.
  8268. *
  8269. * @param string $resource
  8270. * @param string $controller
  8271. * @param array $options
  8272. * @return void
  8273. * @static
  8274. */
  8275. public static function resource($resource, $controller, $options = array()){
  8276. Illuminate\Routing\Router::resource($resource, $controller, $options);
  8277. }
  8278. /**
  8279. * Get the base resource URI for a given resource.
  8280. *
  8281. * @param string $resource
  8282. * @return string
  8283. * @static
  8284. */
  8285. public static function getResourceUri($resource){
  8286. return Illuminate\Routing\Router::getResourceUri($resource);
  8287. }
  8288. /**
  8289. * Format a resource wildcard parameter.
  8290. *
  8291. * @param string $value
  8292. * @return string
  8293. * @static
  8294. */
  8295. public static function getResourceWildcard($value){
  8296. return Illuminate\Routing\Router::getResourceWildcard($value);
  8297. }
  8298. /**
  8299. * Create a route group with shared attributes.
  8300. *
  8301. * @param array $attributes
  8302. * @param Closure $callback
  8303. * @return void
  8304. * @static
  8305. */
  8306. public static function group($attributes, $callback){
  8307. Illuminate\Routing\Router::group($attributes, $callback);
  8308. }
  8309. /**
  8310. * Get the response for a given request.
  8311. *
  8312. * @param \Symfony\Component\HttpFoundation\Request $request
  8313. * @return \Symfony\Component\HttpFoundation\Response
  8314. * @static
  8315. */
  8316. public static function dispatch($request){
  8317. return Illuminate\Routing\Router::dispatch($request);
  8318. }
  8319. /**
  8320. * Register a "before" routing filter.
  8321. *
  8322. * @param Closure|string $callback
  8323. * @return void
  8324. * @static
  8325. */
  8326. public static function before($callback){
  8327. Illuminate\Routing\Router::before($callback);
  8328. }
  8329. /**
  8330. * Register an "after" routing filter.
  8331. *
  8332. * @param Closure|string $callback
  8333. * @return void
  8334. * @static
  8335. */
  8336. public static function after($callback){
  8337. Illuminate\Routing\Router::after($callback);
  8338. }
  8339. /**
  8340. * Register a "close" routing filter.
  8341. *
  8342. * @param Closure|string $callback
  8343. * @return void
  8344. * @static
  8345. */
  8346. public static function close($callback){
  8347. Illuminate\Routing\Router::close($callback);
  8348. }
  8349. /**
  8350. * Register a "finish" routing filters.
  8351. *
  8352. * @param Closure|string $callback
  8353. * @return void
  8354. * @static
  8355. */
  8356. public static function finish($callback){
  8357. Illuminate\Routing\Router::finish($callback);
  8358. }
  8359. /**
  8360. * Register a new filter with the application.
  8361. *
  8362. * @param string $name
  8363. * @param Closure|string $callback
  8364. * @return void
  8365. * @static
  8366. */
  8367. public static function filter($name, $callback){
  8368. Illuminate\Routing\Router::filter($name, $callback);
  8369. }
  8370. /**
  8371. * Get a registered filter callback.
  8372. *
  8373. * @param string $name
  8374. * @return Closure
  8375. * @static
  8376. */
  8377. public static function getFilter($name){
  8378. return Illuminate\Routing\Router::getFilter($name);
  8379. }
  8380. /**
  8381. * Tie a registered filter to a URI pattern.
  8382. *
  8383. * @param string $pattern
  8384. * @param string|array $names
  8385. * @param array|null $methods
  8386. * @return void
  8387. * @static
  8388. */
  8389. public static function when($pattern, $names, $methods = null){
  8390. Illuminate\Routing\Router::when($pattern, $names, $methods);
  8391. }
  8392. /**
  8393. * Find the patterned filters matching a request.
  8394. *
  8395. * @param string $method
  8396. * @param string $path
  8397. * @return array
  8398. * @static
  8399. */
  8400. public static function findPatternFilters($method, $path){
  8401. return Illuminate\Routing\Router::findPatternFilters($method, $path);
  8402. }
  8403. /**
  8404. * Call the finish" global filter.
  8405. *
  8406. * @param \Symfony\Component\HttpFoundation\Request $request
  8407. * @param \Symfony\Component\HttpFoundation\Response $response
  8408. * @return mixed
  8409. * @static
  8410. */
  8411. public static function callFinishFilter($request, $response){
  8412. return Illuminate\Routing\Router::callFinishFilter($request, $response);
  8413. }
  8414. /**
  8415. * Call the "close" global filter.
  8416. *
  8417. * @param \Symfony\Component\HttpFoundation\Request $request
  8418. * @param \Symfony\Component\HttpFoundation\Response $response
  8419. * @return mixed
  8420. * @static
  8421. */
  8422. public static function callCloseFilter($request, $response){
  8423. return Illuminate\Routing\Router::callCloseFilter($request, $response);
  8424. }
  8425. /**
  8426. * Set a global where pattern on all routes
  8427. *
  8428. * @param string $key
  8429. * @param string $pattern
  8430. * @return void
  8431. * @static
  8432. */
  8433. public static function pattern($key, $pattern){
  8434. Illuminate\Routing\Router::pattern($key, $pattern);
  8435. }
  8436. /**
  8437. * Register a model binder for a wildcard.
  8438. *
  8439. * @param string $key
  8440. * @param string $class
  8441. * @return void
  8442. * @static
  8443. */
  8444. public static function model($key, $class, $callback = null){
  8445. Illuminate\Routing\Router::model($key, $class, $callback);
  8446. }
  8447. /**
  8448. * Register a custom parameter binder.
  8449. *
  8450. * @param string $key
  8451. * @param mixed $binder
  8452. * @static
  8453. */
  8454. public static function bind($key, $binder){
  8455. Illuminate\Routing\Router::bind($key, $binder);
  8456. }
  8457. /**
  8458. * Determine if a given key has a registered binder.
  8459. *
  8460. * @param string $key
  8461. * @return bool
  8462. * @static
  8463. */
  8464. public static function hasBinder($key){
  8465. return Illuminate\Routing\Router::hasBinder($key);
  8466. }
  8467. /**
  8468. * Call a binder for a given wildcard.
  8469. *
  8470. * @param string $key
  8471. * @param mixed $value
  8472. * @param \Illuminate\Routing\Route $route
  8473. * @return mixed
  8474. * @static
  8475. */
  8476. public static function performBinding($key, $value, $route){
  8477. return Illuminate\Routing\Router::performBinding($key, $value, $route);
  8478. }
  8479. /**
  8480. * Prepare the given value as a Response object.
  8481. *
  8482. * @param mixed $value
  8483. * @param \Illuminate\Http\Request $request
  8484. * @return \Symfony\Component\HttpFoundation\Response
  8485. * @static
  8486. */
  8487. public static function prepare($value, $request){
  8488. return Illuminate\Routing\Router::prepare($value, $request);
  8489. }
  8490. /**
  8491. * Get the current route name.
  8492. *
  8493. * @return string|null
  8494. * @static
  8495. */
  8496. public static function currentRouteName(){
  8497. return Illuminate\Routing\Router::currentRouteName();
  8498. }
  8499. /**
  8500. * Determine if the current route has a given name.
  8501. *
  8502. * @param string $name
  8503. * @return bool
  8504. * @static
  8505. */
  8506. public static function currentRouteNamed($name){
  8507. return Illuminate\Routing\Router::currentRouteNamed($name);
  8508. }
  8509. /**
  8510. * Get the current route action.
  8511. *
  8512. * @return string|null
  8513. * @static
  8514. */
  8515. public static function currentRouteAction(){
  8516. return Illuminate\Routing\Router::currentRouteAction();
  8517. }
  8518. /**
  8519. * Determine if the current route uses a given controller action.
  8520. *
  8521. * @param string $action
  8522. * @return bool
  8523. * @static
  8524. */
  8525. public static function currentRouteUses($action){
  8526. return Illuminate\Routing\Router::currentRouteUses($action);
  8527. }
  8528. /**
  8529. * Determine if route filters are enabled.
  8530. *
  8531. * @return bool
  8532. * @static
  8533. */
  8534. public static function filtersEnabled(){
  8535. return Illuminate\Routing\Router::filtersEnabled();
  8536. }
  8537. /**
  8538. * Enable the running of filters.
  8539. *
  8540. * @return void
  8541. * @static
  8542. */
  8543. public static function enableFilters(){
  8544. Illuminate\Routing\Router::enableFilters();
  8545. }
  8546. /**
  8547. * Disable the running of all filters.
  8548. *
  8549. * @return void
  8550. * @static
  8551. */
  8552. public static function disableFilters(){
  8553. Illuminate\Routing\Router::disableFilters();
  8554. }
  8555. /**
  8556. * Retrieve the entire route collection.
  8557. *
  8558. * @return \Symfony\Component\Routing\RouteCollection
  8559. * @static
  8560. */
  8561. public static function getRoutes(){
  8562. return Illuminate\Routing\Router::getRoutes();
  8563. }
  8564. /**
  8565. * Get the current request being dispatched.
  8566. *
  8567. * @return \Symfony\Component\HttpFoundation\Request
  8568. * @static
  8569. */
  8570. public static function getRequest(){
  8571. return Illuminate\Routing\Router::getRequest();
  8572. }
  8573. /**
  8574. * Get the current route being executed.
  8575. *
  8576. * @return \Illuminate\Routing\Route
  8577. * @static
  8578. */
  8579. public static function getCurrentRoute(){
  8580. return Illuminate\Routing\Router::getCurrentRoute();
  8581. }
  8582. /**
  8583. * Set the current route on the router.
  8584. *
  8585. * @param \Illuminate\Routing\Route $route
  8586. * @return void
  8587. * @static
  8588. */
  8589. public static function setCurrentRoute($route){
  8590. Illuminate\Routing\Router::setCurrentRoute($route);
  8591. }
  8592. /**
  8593. * Get the filters defined on the router.
  8594. *
  8595. * @return array
  8596. * @static
  8597. */
  8598. public static function getFilters(){
  8599. return Illuminate\Routing\Router::getFilters();
  8600. }
  8601. /**
  8602. * Get the global filters defined on the router.
  8603. *
  8604. * @return array
  8605. * @static
  8606. */
  8607. public static function getGlobalFilters(){
  8608. return Illuminate\Routing\Router::getGlobalFilters();
  8609. }
  8610. /**
  8611. * Get the controller inspector instance.
  8612. *
  8613. * @return \Illuminate\Routing\Controllers\Inspector
  8614. * @static
  8615. */
  8616. public static function getInspector(){
  8617. return Illuminate\Routing\Router::getInspector();
  8618. }
  8619. /**
  8620. * Set the controller inspector instance.
  8621. *
  8622. * @param \Illuminate\Routing\Controllers\Inspector $inspector
  8623. * @return void
  8624. * @static
  8625. */
  8626. public static function setInspector($inspector){
  8627. Illuminate\Routing\Router::setInspector($inspector);
  8628. }
  8629. /**
  8630. * Get the container used by the router.
  8631. *
  8632. * @return \Illuminate\Container\Container
  8633. * @static
  8634. */
  8635. public static function getContainer(){
  8636. return Illuminate\Routing\Router::getContainer();
  8637. }
  8638. /**
  8639. * Set the container instance on the router.
  8640. *
  8641. * @param \Illuminate\Container\Container $container
  8642. * @return void
  8643. * @static
  8644. */
  8645. public static function setContainer($container){
  8646. Illuminate\Routing\Router::setContainer($container);
  8647. }
  8648. }
  8649. class Schema extends Illuminate\Support\Facades\Schema{
  8650. /**
  8651. * Determine if the given table exists.
  8652. *
  8653. * @param string $table
  8654. * @return bool
  8655. * @static
  8656. */
  8657. public static function hasTable($table){
  8658. return Illuminate\Database\Schema\MySqlBuilder::hasTable($table);
  8659. }
  8660. /**
  8661. * Create a new database Schema manager.
  8662. *
  8663. * @param \Illuminate\Database\Connection $connection
  8664. * @return void
  8665. * @static
  8666. */
  8667. public static function __construct($connection){
  8668. //Method inherited from Illuminate\Database\Schema\Builder
  8669. Illuminate\Database\Schema\MySqlBuilder::__construct($connection);
  8670. }
  8671. /**
  8672. * Determine if the given table has a given column.
  8673. *
  8674. * @param string $table
  8675. * @param string $column
  8676. * @return bool
  8677. * @static
  8678. */
  8679. public static function hasColumn($table, $column){
  8680. //Method inherited from Illuminate\Database\Schema\Builder
  8681. return Illuminate\Database\Schema\MySqlBuilder::hasColumn($table, $column);
  8682. }
  8683. /**
  8684. * Modify a table on the schema.
  8685. *
  8686. * @param string $table
  8687. * @param Closure $callback
  8688. * @return \Illuminate\Database\Schema\Blueprint
  8689. * @static
  8690. */
  8691. public static function table($table, $callback){
  8692. //Method inherited from Illuminate\Database\Schema\Builder
  8693. return Illuminate\Database\Schema\MySqlBuilder::table($table, $callback);
  8694. }
  8695. /**
  8696. * Create a new table on the schema.
  8697. *
  8698. * @param string $table
  8699. * @param Closure $callback
  8700. * @return \Illuminate\Database\Schema\Blueprint
  8701. * @static
  8702. */
  8703. public static function create($table, $callback){
  8704. //Method inherited from Illuminate\Database\Schema\Builder
  8705. return Illuminate\Database\Schema\MySqlBuilder::create($table, $callback);
  8706. }
  8707. /**
  8708. * Drop a table from the schema.
  8709. *
  8710. * @param string $table
  8711. * @return \Illuminate\Database\Schema\Blueprint
  8712. * @static
  8713. */
  8714. public static function drop($table){
  8715. //Method inherited from Illuminate\Database\Schema\Builder
  8716. return Illuminate\Database\Schema\MySqlBuilder::drop($table);
  8717. }
  8718. /**
  8719. * Drop a table from the schema if it exists.
  8720. *
  8721. * @param string $table
  8722. * @return \Illuminate\Database\Schema\Blueprint
  8723. * @static
  8724. */
  8725. public static function dropIfExists($table){
  8726. //Method inherited from Illuminate\Database\Schema\Builder
  8727. return Illuminate\Database\Schema\MySqlBuilder::dropIfExists($table);
  8728. }
  8729. /**
  8730. * Rename a table on the schema.
  8731. *
  8732. * @param string $from
  8733. * @param string $to
  8734. * @return \Illuminate\Database\Schema\Blueprint
  8735. * @static
  8736. */
  8737. public static function rename($from, $to){
  8738. //Method inherited from Illuminate\Database\Schema\Builder
  8739. return Illuminate\Database\Schema\MySqlBuilder::rename($from, $to);
  8740. }
  8741. /**
  8742. * Get the database connection instance.
  8743. *
  8744. * @return \Illuminate\Database\Connection
  8745. * @static
  8746. */
  8747. public static function getConnection(){
  8748. //Method inherited from Illuminate\Database\Schema\Builder
  8749. return Illuminate\Database\Schema\MySqlBuilder::getConnection();
  8750. }
  8751. /**
  8752. * Set the database connection instance.
  8753. *
  8754. * @param \Illuminate\Database\Connection
  8755. * @return \Illuminate\Database\Schema\Builder
  8756. * @static
  8757. */
  8758. public static function setConnection($connection){
  8759. //Method inherited from Illuminate\Database\Schema\Builder
  8760. return Illuminate\Database\Schema\MySqlBuilder::setConnection($connection);
  8761. }
  8762. }
  8763. class Seeder extends Illuminate\Database\Seeder{
  8764. }
  8765. class Session extends Illuminate\Support\Facades\Session{
  8766. /**
  8767. * Create a new manager instance.
  8768. *
  8769. * @param \Illuminate\Foundation\Application $app
  8770. * @return void
  8771. * @static
  8772. */
  8773. public static function __construct($app){
  8774. //Method inherited from Illuminate\Support\Manager
  8775. Illuminate\Session\SessionManager::__construct($app);
  8776. }
  8777. /**
  8778. * Get a driver instance.
  8779. *
  8780. * @param string $driver
  8781. * @return mixed
  8782. * @static
  8783. */
  8784. public static function driver($driver = null){
  8785. //Method inherited from Illuminate\Support\Manager
  8786. return Illuminate\Session\SessionManager::driver($driver);
  8787. }
  8788. /**
  8789. * Register a custom driver creator Closure.
  8790. *
  8791. * @param string $driver
  8792. * @param Closure $callback
  8793. * @return void
  8794. * @static
  8795. */
  8796. public static function extend($driver, $callback){
  8797. //Method inherited from Illuminate\Support\Manager
  8798. Illuminate\Session\SessionManager::extend($driver, $callback);
  8799. }
  8800. /**
  8801. * Get all of the created "drivers".
  8802. *
  8803. * @return array
  8804. * @static
  8805. */
  8806. public static function getDrivers(){
  8807. //Method inherited from Illuminate\Support\Manager
  8808. return Illuminate\Session\SessionManager::getDrivers();
  8809. }
  8810. /**
  8811. * Dynamically call the default driver instance.
  8812. *
  8813. * @param string $method
  8814. * @param array $parameters
  8815. * @return mixed
  8816. * @static
  8817. */
  8818. public static function __call($method, $parameters){
  8819. //Method inherited from Illuminate\Support\Manager
  8820. return Illuminate\Session\SessionManager::__call($method, $parameters);
  8821. }
  8822. /**
  8823. * Starts the session storage.
  8824. *
  8825. * @return Boolean True if session started.
  8826. * @throws \RuntimeException If session fails to start.
  8827. * @api
  8828. * @static
  8829. */
  8830. public static function start(){
  8831. return Illuminate\Session\Store::start();
  8832. }
  8833. /**
  8834. * Force the session to be saved and closed.
  8835. *
  8836. * This method is generally not required for real sessions as
  8837. * the session will be automatically saved at the end of
  8838. * code execution.
  8839. *
  8840. * @static
  8841. */
  8842. public static function save(){
  8843. Illuminate\Session\Store::save();
  8844. }
  8845. /**
  8846. * Checks if an attribute is defined.
  8847. *
  8848. * @param string $name The attribute name
  8849. * @return Boolean true if the attribute is defined, false otherwise
  8850. * @api
  8851. * @static
  8852. */
  8853. public static function has($name){
  8854. return Illuminate\Session\Store::has($name);
  8855. }
  8856. /**
  8857. * Returns an attribute.
  8858. *
  8859. * @param string $name The attribute name
  8860. * @param mixed $default The default value if not found.
  8861. * @return mixed
  8862. * @api
  8863. * @static
  8864. */
  8865. public static function get($name, $default = null){
  8866. return Illuminate\Session\Store::get($name, $default);
  8867. }
  8868. /**
  8869. * Determine if the session contains old input.
  8870. *
  8871. * @param string $key
  8872. * @return bool
  8873. * @static
  8874. */
  8875. public static function hasOldInput($key = null){
  8876. return Illuminate\Session\Store::hasOldInput($key);
  8877. }
  8878. /**
  8879. * Get the requested item from the flashed input array.
  8880. *
  8881. * @param string $key
  8882. * @param mixed $default
  8883. * @return mixed
  8884. * @static
  8885. */
  8886. public static function getOldInput($key = null, $default = null){
  8887. return Illuminate\Session\Store::getOldInput($key, $default);
  8888. }
  8889. /**
  8890. * Get the CSRF token value.
  8891. *
  8892. * @return string
  8893. * @static
  8894. */
  8895. public static function getToken(){
  8896. return Illuminate\Session\Store::getToken();
  8897. }
  8898. /**
  8899. * Get the CSRF token value.
  8900. *
  8901. * @return string
  8902. * @static
  8903. */
  8904. public static function token(){
  8905. return Illuminate\Session\Store::token();
  8906. }
  8907. /**
  8908. * Put a key / value pair in the session.
  8909. *
  8910. * @param string $key
  8911. * @param mixed $value
  8912. * @return void
  8913. * @static
  8914. */
  8915. public static function put($key, $value){
  8916. Illuminate\Session\Store::put($key, $value);
  8917. }
  8918. /**
  8919. * Push a value onto a session array.
  8920. *
  8921. * @param string $key
  8922. * @param mixed $value
  8923. * @return void
  8924. * @static
  8925. */
  8926. public static function push($key, $value){
  8927. Illuminate\Session\Store::push($key, $value);
  8928. }
  8929. /**
  8930. * Flash a key / value pair to the session.
  8931. *
  8932. * @param string $key
  8933. * @param mixed $value
  8934. * @return void
  8935. * @static
  8936. */
  8937. public static function flash($key, $value){
  8938. Illuminate\Session\Store::flash($key, $value);
  8939. }
  8940. /**
  8941. * Flash an input array to the session.
  8942. *
  8943. * @param array $value
  8944. * @return void
  8945. * @static
  8946. */
  8947. public static function flashInput($value){
  8948. Illuminate\Session\Store::flashInput($value);
  8949. }
  8950. /**
  8951. * Reflash all of the session flash data.
  8952. *
  8953. * @return void
  8954. * @static
  8955. */
  8956. public static function reflash(){
  8957. Illuminate\Session\Store::reflash();
  8958. }
  8959. /**
  8960. * Reflash a subset of the current flash data.
  8961. *
  8962. * @param array|dynamic $keys
  8963. * @return void
  8964. * @static
  8965. */
  8966. public static function keep($keys = null){
  8967. Illuminate\Session\Store::keep($keys);
  8968. }
  8969. /**
  8970. * Remove an item from the session.
  8971. *
  8972. * @param string $key
  8973. * @return void
  8974. * @static
  8975. */
  8976. public static function forget($key){
  8977. Illuminate\Session\Store::forget($key);
  8978. }
  8979. /**
  8980. * Remove all of the items from the session.
  8981. *
  8982. * @return void
  8983. * @static
  8984. */
  8985. public static function flush(){
  8986. Illuminate\Session\Store::flush();
  8987. }
  8988. /**
  8989. * Generate a new session identifier.
  8990. *
  8991. * @return string
  8992. * @static
  8993. */
  8994. public static function regenerate(){
  8995. return Illuminate\Session\Store::regenerate();
  8996. }
  8997. /**
  8998. * Sets an attribute.
  8999. *
  9000. * @param string $name
  9001. * @param mixed $value
  9002. * @api
  9003. * @static
  9004. */
  9005. public static function set($name, $value){
  9006. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9007. Illuminate\Session\Store::set($name, $value);
  9008. }
  9009. /**
  9010. * Returns attributes.
  9011. *
  9012. * @return array Attributes
  9013. * @api
  9014. * @static
  9015. */
  9016. public static function all(){
  9017. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9018. return Illuminate\Session\Store::all();
  9019. }
  9020. /**
  9021. * Sets attributes.
  9022. *
  9023. * @param array $attributes Attributes
  9024. * @static
  9025. */
  9026. public static function replace($attributes){
  9027. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9028. Illuminate\Session\Store::replace($attributes);
  9029. }
  9030. /**
  9031. * Removes an attribute.
  9032. *
  9033. * @param string $name
  9034. * @return mixed The removed value
  9035. * @api
  9036. * @static
  9037. */
  9038. public static function remove($name){
  9039. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9040. return Illuminate\Session\Store::remove($name);
  9041. }
  9042. /**
  9043. * Clears all attributes.
  9044. *
  9045. * @api
  9046. * @static
  9047. */
  9048. public static function clear(){
  9049. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9050. Illuminate\Session\Store::clear();
  9051. }
  9052. /**
  9053. * Checks if the session was started.
  9054. *
  9055. * @return Boolean
  9056. * @static
  9057. */
  9058. public static function isStarted(){
  9059. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9060. return Illuminate\Session\Store::isStarted();
  9061. }
  9062. /**
  9063. * Returns an iterator for attributes.
  9064. *
  9065. * @return \ArrayIterator An \ArrayIterator instance
  9066. * @static
  9067. */
  9068. public static function getIterator(){
  9069. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9070. return Illuminate\Session\Store::getIterator();
  9071. }
  9072. /**
  9073. * Returns the number of attributes.
  9074. *
  9075. * @return int The number of attributes
  9076. * @static
  9077. */
  9078. public static function count(){
  9079. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9080. return Illuminate\Session\Store::count();
  9081. }
  9082. /**
  9083. * Invalidates the current session.
  9084. *
  9085. * Clears all session attributes and flashes and regenerates the
  9086. * session and deletes the old session from persistence.
  9087. *
  9088. * @param integer $lifetime Sets the cookie lifetime for the session cookie. A null value
  9089. * will leave the system settings unchanged, 0 sets the cookie
  9090. * to expire with browser session. Time is in seconds, and is
  9091. * not a Unix timestamp.
  9092. * @return Boolean True if session invalidated, false if error.
  9093. * @api
  9094. * @static
  9095. */
  9096. public static function invalidate($lifetime = null){
  9097. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9098. return Illuminate\Session\Store::invalidate($lifetime);
  9099. }
  9100. /**
  9101. * Migrates the current session to a new session id while maintaining all
  9102. * session attributes.
  9103. *
  9104. * @param Boolean $destroy Whether to delete the old session or leave it to garbage collection.
  9105. * @param integer $lifetime Sets the cookie lifetime for the session cookie. A null value
  9106. * will leave the system settings unchanged, 0 sets the cookie
  9107. * to expire with browser session. Time is in seconds, and is
  9108. * not a Unix timestamp.
  9109. * @return Boolean True if session migrated, false if error.
  9110. * @api
  9111. * @static
  9112. */
  9113. public static function migrate($destroy = false, $lifetime = null){
  9114. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9115. return Illuminate\Session\Store::migrate($destroy, $lifetime);
  9116. }
  9117. /**
  9118. * Returns the session ID.
  9119. *
  9120. * @return string The session ID.
  9121. * @api
  9122. * @static
  9123. */
  9124. public static function getId(){
  9125. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9126. return Illuminate\Session\Store::getId();
  9127. }
  9128. /**
  9129. * Sets the session ID
  9130. *
  9131. * @param string $id
  9132. * @api
  9133. * @static
  9134. */
  9135. public static function setId($id){
  9136. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9137. Illuminate\Session\Store::setId($id);
  9138. }
  9139. /**
  9140. * Returns the session name.
  9141. *
  9142. * @return mixed The session name.
  9143. * @api
  9144. * @static
  9145. */
  9146. public static function getName(){
  9147. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9148. return Illuminate\Session\Store::getName();
  9149. }
  9150. /**
  9151. * Sets the session name.
  9152. *
  9153. * @param string $name
  9154. * @api
  9155. * @static
  9156. */
  9157. public static function setName($name){
  9158. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9159. Illuminate\Session\Store::setName($name);
  9160. }
  9161. /**
  9162. * Gets session meta.
  9163. *
  9164. * @return MetadataBag
  9165. * @static
  9166. */
  9167. public static function getMetadataBag(){
  9168. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9169. return Illuminate\Session\Store::getMetadataBag();
  9170. }
  9171. /**
  9172. * Registers a SessionBagInterface with the session.
  9173. *
  9174. * @param SessionBagInterface $bag
  9175. * @static
  9176. */
  9177. public static function registerBag($bag){
  9178. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9179. Illuminate\Session\Store::registerBag($bag);
  9180. }
  9181. /**
  9182. * Gets a bag instance by name.
  9183. *
  9184. * @param string $name
  9185. * @return SessionBagInterface
  9186. * @static
  9187. */
  9188. public static function getBag($name){
  9189. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9190. return Illuminate\Session\Store::getBag($name);
  9191. }
  9192. /**
  9193. * Gets the flashbag interface.
  9194. *
  9195. * @return FlashBagInterface
  9196. * @static
  9197. */
  9198. public static function getFlashBag(){
  9199. //Method inherited from Symfony\Component\HttpFoundation\Session\Session
  9200. return Illuminate\Session\Store::getFlashBag();
  9201. }
  9202. }
  9203. class Str extends Illuminate\Support\Str{
  9204. }
  9205. class URL extends Illuminate\Support\Facades\URL{
  9206. /**
  9207. * Create a new URL Generator instance.
  9208. *
  9209. * @param \Symfony\Component\Routing\RouteCollection $routes
  9210. * @param \Symfony\Component\HttpFoundation\Request $request
  9211. * @return void
  9212. * @static
  9213. */
  9214. public static function __construct($routes, $request){
  9215. Illuminate\Routing\UrlGenerator::__construct($routes, $request);
  9216. }
  9217. /**
  9218. * Get the full URL for the current request.
  9219. *
  9220. * @return string
  9221. * @static
  9222. */
  9223. public static function full(){
  9224. return Illuminate\Routing\UrlGenerator::full();
  9225. }
  9226. /**
  9227. * Get the current URL for the request.
  9228. *
  9229. * @return string
  9230. * @static
  9231. */
  9232. public static function current(){
  9233. return Illuminate\Routing\UrlGenerator::current();
  9234. }
  9235. /**
  9236. * Get the URL for the previous request.
  9237. *
  9238. * @return string
  9239. * @static
  9240. */
  9241. public static function previous(){
  9242. return Illuminate\Routing\UrlGenerator::previous();
  9243. }
  9244. /**
  9245. * Generate a absolute URL to the given path.
  9246. *
  9247. * @param string $path
  9248. * @param mixed $parameters
  9249. * @param bool $secure
  9250. * @return string
  9251. * @static
  9252. */
  9253. public static function to($path, $parameters = array(), $secure = null){
  9254. return Illuminate\Routing\UrlGenerator::to($path, $parameters, $secure);
  9255. }
  9256. /**
  9257. * Generate a secure, absolute URL to the given path.
  9258. *
  9259. * @param string $path
  9260. * @param array $parameters
  9261. * @return string
  9262. * @static
  9263. */
  9264. public static function secure($path, $parameters = array()){
  9265. return Illuminate\Routing\UrlGenerator::secure($path, $parameters);
  9266. }
  9267. /**
  9268. * Generate a URL to an application asset.
  9269. *
  9270. * @param string $path
  9271. * @param bool $secure
  9272. * @return string
  9273. * @static
  9274. */
  9275. public static function asset($path, $secure = null){
  9276. return Illuminate\Routing\UrlGenerator::asset($path, $secure);
  9277. }
  9278. /**
  9279. * Generate a URL to a secure asset.
  9280. *
  9281. * @param string $path
  9282. * @return string
  9283. * @static
  9284. */
  9285. public static function secureAsset($path){
  9286. return Illuminate\Routing\UrlGenerator::secureAsset($path);
  9287. }
  9288. /**
  9289. * Get the URL to a named route.
  9290. *
  9291. * @param string $name
  9292. * @param mixed $parameters
  9293. * @param bool $absolute
  9294. * @return string
  9295. * @static
  9296. */
  9297. public static function route($name, $parameters = array(), $absolute = true){
  9298. return Illuminate\Routing\UrlGenerator::route($name, $parameters, $absolute);
  9299. }
  9300. /**
  9301. * Get the URL to a controller action.
  9302. *
  9303. * @param string $action
  9304. * @param mixed $parameters
  9305. * @param bool $absolute
  9306. * @return string
  9307. * @static
  9308. */
  9309. public static function action($action, $parameters = array(), $absolute = true){
  9310. return Illuminate\Routing\UrlGenerator::action($action, $parameters, $absolute);
  9311. }
  9312. /**
  9313. * Determine if the given path is a valid URL.
  9314. *
  9315. * @param string $path
  9316. * @return bool
  9317. * @static
  9318. */
  9319. public static function isValidUrl($path){
  9320. return Illuminate\Routing\UrlGenerator::isValidUrl($path);
  9321. }
  9322. /**
  9323. * Get the request instance.
  9324. *
  9325. * @return \Symfony\Component\HttpFoundation\Request
  9326. * @static
  9327. */
  9328. public static function getRequest(){
  9329. return Illuminate\Routing\UrlGenerator::getRequest();
  9330. }
  9331. /**
  9332. * Set the current request instance.
  9333. *
  9334. * @param \Symfony\Component\HttpFoundation\Request $request
  9335. * @return void
  9336. * @static
  9337. */
  9338. public static function setRequest($request){
  9339. Illuminate\Routing\UrlGenerator::setRequest($request);
  9340. }
  9341. /**
  9342. * Get the Symfony URL generator instance.
  9343. *
  9344. * @return \Symfony\Component\Routing\Generator\UrlGenerator
  9345. * @static
  9346. */
  9347. public static function getGenerator(){
  9348. return Illuminate\Routing\UrlGenerator::getGenerator();
  9349. }
  9350. /**
  9351. * Set the Symfony URL generator instance.
  9352. *
  9353. * @param \Symfony\Component\Routing\Generator\UrlGenerator $generator
  9354. * @return void
  9355. * @static
  9356. */
  9357. public static function setGenerator($generator){
  9358. Illuminate\Routing\UrlGenerator::setGenerator($generator);
  9359. }
  9360. }
  9361. class Validator extends Illuminate\Support\Facades\Validator{
  9362. /**
  9363. * Create a new Validator factory instance.
  9364. *
  9365. * @param \Symfony\Component\Translation\TranslatorInterface $translator
  9366. * @param \Illuminate\Container\Container $container
  9367. * @return void
  9368. * @static
  9369. */
  9370. public static function __construct($translator, $container = null){
  9371. Illuminate\Validation\Factory::__construct($translator, $container);
  9372. }
  9373. /**
  9374. * Create a new Validator instance.
  9375. *
  9376. * @param array $data
  9377. * @param array $rules
  9378. * @param array $messages
  9379. * @return \Illuminate\Validation\Validator
  9380. * @static
  9381. */
  9382. public static function make($data, $rules, $messages = array()){
  9383. return Illuminate\Validation\Factory::make($data, $rules, $messages);
  9384. }
  9385. /**
  9386. * Register a custom validator extension.
  9387. *
  9388. * @param string $rule
  9389. * @param Closure|string $extension
  9390. * @return void
  9391. * @static
  9392. */
  9393. public static function extend($rule, $extension){
  9394. Illuminate\Validation\Factory::extend($rule, $extension);
  9395. }
  9396. /**
  9397. * Register a custom implicit validator extension.
  9398. *
  9399. * @param string $rule
  9400. * @param Closure $extension
  9401. * @return void
  9402. * @static
  9403. */
  9404. public static function extendImplicit($rule, $extension){
  9405. Illuminate\Validation\Factory::extendImplicit($rule, $extension);
  9406. }
  9407. /**
  9408. * Set the Validator instance resolver.
  9409. *
  9410. * @param Closure $resolver
  9411. * @return void
  9412. * @static
  9413. */
  9414. public static function resolver($resolver){
  9415. Illuminate\Validation\Factory::resolver($resolver);
  9416. }
  9417. /**
  9418. * Get the Translator implementation.
  9419. *
  9420. * @return \Symfony\Component\Translation\TranslatorInterface
  9421. * @static
  9422. */
  9423. public static function getTranslator(){
  9424. return Illuminate\Validation\Factory::getTranslator();
  9425. }
  9426. /**
  9427. * Get the Presence Verifier implementation.
  9428. *
  9429. * @return \Illuminate\Validation\PresenceVerifierInterface
  9430. * @static
  9431. */
  9432. public static function getPresenceVerifier(){
  9433. return Illuminate\Validation\Factory::getPresenceVerifier();
  9434. }
  9435. /**
  9436. * Set the Presence Verifier implementation.
  9437. *
  9438. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  9439. * @return void
  9440. * @static
  9441. */
  9442. public static function setPresenceVerifier($presenceVerifier){
  9443. Illuminate\Validation\Factory::setPresenceVerifier($presenceVerifier);
  9444. }
  9445. }
  9446. class View extends Illuminate\Support\Facades\View{
  9447. /**
  9448. * Create a new view environment instance.
  9449. *
  9450. * @param \Illuminate\View\Engines\EngineResolver $engines
  9451. * @param \Illuminate\View\ViewFinderInterface $finder
  9452. * @param \Illuminate\Events\Dispatcher $events
  9453. * @return void
  9454. * @static
  9455. */
  9456. public static function __construct($engines, $finder, $events){
  9457. Illuminate\View\Environment::__construct($engines, $finder, $events);
  9458. }
  9459. /**
  9460. * Get a evaluated view contents for the given view.
  9461. *
  9462. * @param string $view
  9463. * @param array $data
  9464. * @param array $mergeData
  9465. * @return \Illuminate\View\View
  9466. * @static
  9467. */
  9468. public static function make($view, $data = array(), $mergeData = array()){
  9469. return Illuminate\View\Environment::make($view, $data, $mergeData);
  9470. }
  9471. /**
  9472. * Get a evaluated view contents for a named view.
  9473. *
  9474. * @param string $view
  9475. * @param mixed $data
  9476. * @return \Illuminate\View\View
  9477. * @static
  9478. */
  9479. public static function of($view, $data = array()){
  9480. return Illuminate\View\Environment::of($view, $data);
  9481. }
  9482. /**
  9483. * Register a named view.
  9484. *
  9485. * @param string $view
  9486. * @param string $name
  9487. * @return void
  9488. * @static
  9489. */
  9490. public static function name($view, $name){
  9491. Illuminate\View\Environment::name($view, $name);
  9492. }
  9493. /**
  9494. * Determine if a given view exists.
  9495. *
  9496. * @param string $view
  9497. * @return bool
  9498. * @static
  9499. */
  9500. public static function exists($view){
  9501. return Illuminate\View\Environment::exists($view);
  9502. }
  9503. /**
  9504. * Get the rendered contents of a partial from a loop.
  9505. *
  9506. * @param string $view
  9507. * @param array $data
  9508. * @param string $iterator
  9509. * @param string $empty
  9510. * @return string
  9511. * @static
  9512. */
  9513. public static function renderEach($view, $data, $iterator, $empty = 'raw|'){
  9514. return Illuminate\View\Environment::renderEach($view, $data, $iterator, $empty);
  9515. }
  9516. /**
  9517. * Add a piece of shared data to the environment.
  9518. *
  9519. * @param string $key
  9520. * @param mixed $value
  9521. * @return void
  9522. * @static
  9523. */
  9524. public static function share($key, $value = null){
  9525. Illuminate\View\Environment::share($key, $value);
  9526. }
  9527. /**
  9528. * Register a view creator event.
  9529. *
  9530. * @param array|string $views
  9531. * @param \Closure|string $callback
  9532. * @return array
  9533. * @static
  9534. */
  9535. public static function creator($views, $callback){
  9536. return Illuminate\View\Environment::creator($views, $callback);
  9537. }
  9538. /**
  9539. * Register a view composer event.
  9540. *
  9541. * @param array|string $views
  9542. * @param \Closure|string $callback
  9543. * @return array
  9544. * @static
  9545. */
  9546. public static function composer($views, $callback){
  9547. return Illuminate\View\Environment::composer($views, $callback);
  9548. }
  9549. /**
  9550. * Call the composer for a given view.
  9551. *
  9552. * @param \Illuminate\View\View $view
  9553. * @return void
  9554. * @static
  9555. */
  9556. public static function callComposer($view){
  9557. Illuminate\View\Environment::callComposer($view);
  9558. }
  9559. /**
  9560. * Call the creator for a given view.
  9561. *
  9562. * @param \Illuminate\View\View $view
  9563. * @return void
  9564. * @static
  9565. */
  9566. public static function callCreator($view){
  9567. Illuminate\View\Environment::callCreator($view);
  9568. }
  9569. /**
  9570. * Start injecting content into a section.
  9571. *
  9572. * @param string $section
  9573. * @param string $content
  9574. * @return void
  9575. * @static
  9576. */
  9577. public static function startSection($section, $content = ''){
  9578. Illuminate\View\Environment::startSection($section, $content);
  9579. }
  9580. /**
  9581. * Inject inline content into a section.
  9582. *
  9583. * @param string $section
  9584. * @param string $content
  9585. * @return void
  9586. * @static
  9587. */
  9588. public static function inject($section, $content){
  9589. Illuminate\View\Environment::inject($section, $content);
  9590. }
  9591. /**
  9592. * Stop injecting content into a section and return its contents.
  9593. *
  9594. * @return string
  9595. * @static
  9596. */
  9597. public static function yieldSection(){
  9598. return Illuminate\View\Environment::yieldSection();
  9599. }
  9600. /**
  9601. * Stop injecting content into a section.
  9602. *
  9603. * @param bool $overwrite
  9604. * @return string
  9605. * @static
  9606. */
  9607. public static function stopSection($overwrite = false){
  9608. return Illuminate\View\Environment::stopSection($overwrite);
  9609. }
  9610. /**
  9611. * Get the string contents of a section.
  9612. *
  9613. * @param string $section
  9614. * @param string $default
  9615. * @return string
  9616. * @static
  9617. */
  9618. public static function yieldContent($section, $default = ''){
  9619. return Illuminate\View\Environment::yieldContent($section, $default);
  9620. }
  9621. /**
  9622. * Flush all of the section contents.
  9623. *
  9624. * @return void
  9625. * @static
  9626. */
  9627. public static function flushSections(){
  9628. Illuminate\View\Environment::flushSections();
  9629. }
  9630. /**
  9631. * Increment the rendering counter.
  9632. *
  9633. * @return void
  9634. * @static
  9635. */
  9636. public static function incrementRender(){
  9637. Illuminate\View\Environment::incrementRender();
  9638. }
  9639. /**
  9640. * Decrement the rendering counter.
  9641. *
  9642. * @return void
  9643. * @static
  9644. */
  9645. public static function decrementRender(){
  9646. Illuminate\View\Environment::decrementRender();
  9647. }
  9648. /**
  9649. * Check if there are no active render operations.
  9650. *
  9651. * @return bool
  9652. * @static
  9653. */
  9654. public static function doneRendering(){
  9655. return Illuminate\View\Environment::doneRendering();
  9656. }
  9657. /**
  9658. * Add a location to the array of view locations.
  9659. *
  9660. * @param string $location
  9661. * @return void
  9662. * @static
  9663. */
  9664. public static function addLocation($location){
  9665. Illuminate\View\Environment::addLocation($location);
  9666. }
  9667. /**
  9668. * Add a new namespace to the loader.
  9669. *
  9670. * @param string $namespace
  9671. * @param string|array $hints
  9672. * @return void
  9673. * @static
  9674. */
  9675. public static function addNamespace($namespace, $hints){
  9676. Illuminate\View\Environment::addNamespace($namespace, $hints);
  9677. }
  9678. /**
  9679. * Register a valid view extension and its engine.
  9680. *
  9681. * @param string $extension
  9682. * @param string $engine
  9683. * @param Closure $resolver
  9684. * @return void
  9685. * @static
  9686. */
  9687. public static function addExtension($extension, $engine, $resolver = null){
  9688. Illuminate\View\Environment::addExtension($extension, $engine, $resolver);
  9689. }
  9690. /**
  9691. * Get the extension to engine bindings.
  9692. *
  9693. * @return array
  9694. * @static
  9695. */
  9696. public static function getExtensions(){
  9697. return Illuminate\View\Environment::getExtensions();
  9698. }
  9699. /**
  9700. * Get the engine resolver instance.
  9701. *
  9702. * @return \Illuminate\View\Engines\EngineResolver
  9703. * @static
  9704. */
  9705. public static function getEngineResolver(){
  9706. return Illuminate\View\Environment::getEngineResolver();
  9707. }
  9708. /**
  9709. * Get the view finder instance.
  9710. *
  9711. * @return \Illuminate\View\ViewFinderInterface
  9712. * @static
  9713. */
  9714. public static function getFinder(){
  9715. return Illuminate\View\Environment::getFinder();
  9716. }
  9717. /**
  9718. * Get the event dispatcher instance.
  9719. *
  9720. * @return \Illuminate\Events\Dispatcher
  9721. * @static
  9722. */
  9723. public static function getDispatcher(){
  9724. return Illuminate\View\Environment::getDispatcher();
  9725. }
  9726. /**
  9727. * Set the event dispatcher instance.
  9728. *
  9729. * @param \Illuminate\Events\Dispatcher
  9730. * @return void
  9731. * @static
  9732. */
  9733. public static function setDispatcher($events){
  9734. Illuminate\View\Environment::setDispatcher($events);
  9735. }
  9736. /**
  9737. * Get the IoC container instance.
  9738. *
  9739. * @return \Illuminate\Container\Container
  9740. * @static
  9741. */
  9742. public static function getContainer(){
  9743. return Illuminate\View\Environment::getContainer();
  9744. }
  9745. /**
  9746. * Set the IoC container instance.
  9747. *
  9748. * @param \Illuminate\Container\Container $container
  9749. * @return void
  9750. * @static
  9751. */
  9752. public static function setContainer($container){
  9753. Illuminate\View\Environment::setContainer($container);
  9754. }
  9755. /**
  9756. * Get an item from the shared data.
  9757. *
  9758. * @param string $key
  9759. * @param mixed $default
  9760. * @return mixed
  9761. * @static
  9762. */
  9763. public static function shared($key, $default = null){
  9764. return Illuminate\View\Environment::shared($key, $default);
  9765. }
  9766. /**
  9767. * Get all of the shared data for the environment.
  9768. *
  9769. * @return array
  9770. * @static
  9771. */
  9772. public static function getShared(){
  9773. return Illuminate\View\Environment::getShared();
  9774. }
  9775. /**
  9776. * Get the entire array of sections.
  9777. *
  9778. * @return array
  9779. * @static
  9780. */
  9781. public static function getSections(){
  9782. return Illuminate\View\Environment::getSections();
  9783. }
  9784. /**
  9785. * Get all of the registered named views in environment.
  9786. *
  9787. * @return array
  9788. * @static
  9789. */
  9790. public static function getNames(){
  9791. return Illuminate\View\Environment::getNames();
  9792. }
  9793. }