PageRenderTime 54ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/_ide_helper.php

https://github.com/Surreal9/Laravel-4-Bootstrap-Starter-Site
PHP | 10400 lines | 2790 code | 915 blank | 6695 comment | 0 complexity | e091f88c5cd43cdc0df13049998f2da4 MD5 | raw file

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

  1. <?php
  2. /**
  3. * An helper file for Laravel 4, to provide autocomplete information to your IDE
  4. * Generated with https://github.com/barryvdh/laravel-ide-helper
  5. *
  6. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  7. */
  8. namespace {
  9. die('Only to be used as an helper for your IDE');
  10. }
  11. namespace {
  12. class App extends Illuminate\Support\Facades\App{
  13. /**
  14. * Create a new Illuminate application instance.
  15. *
  16. * @param \Illuminate\Http\Request $request
  17. * @return self
  18. * @static
  19. */
  20. public static function __construct($request = null){
  21. \Illuminate\Foundation\Application::__construct($request);
  22. }
  23. /**
  24. * Set the application request for the console environment.
  25. *
  26. * @return void
  27. * @static
  28. */
  29. public static function setRequestForConsoleEnvironment(){
  30. \Illuminate\Foundation\Application::setRequestForConsoleEnvironment();
  31. }
  32. /**
  33. * Redirect the request if it has a trailing slash.
  34. *
  35. * @return \Symfony\Component\HttpFoundation\RedirectResponse|null
  36. * @static
  37. */
  38. public static function redirectIfTrailingSlash(){
  39. return \Illuminate\Foundation\Application::redirectIfTrailingSlash();
  40. }
  41. /**
  42. * Bind the installation paths to the application.
  43. *
  44. * @param array $paths
  45. * @return void
  46. * @static
  47. */
  48. public static function bindInstallPaths($paths){
  49. \Illuminate\Foundation\Application::bindInstallPaths($paths);
  50. }
  51. /**
  52. * Get the application bootstrap file.
  53. *
  54. * @return string
  55. * @static
  56. */
  57. public static function getBootstrapFile(){
  58. return \Illuminate\Foundation\Application::getBootstrapFile();
  59. }
  60. /**
  61. * Start the exception handling for the request.
  62. *
  63. * @return void
  64. * @static
  65. */
  66. public static function startExceptionHandling(){
  67. \Illuminate\Foundation\Application::startExceptionHandling();
  68. }
  69. /**
  70. * Get the current application environment.
  71. *
  72. * @return string
  73. * @static
  74. */
  75. public static function environment(){
  76. return \Illuminate\Foundation\Application::environment();
  77. }
  78. /**
  79. * Detect the application's current environment.
  80. *
  81. * @param array|string $environments
  82. * @return string
  83. * @static
  84. */
  85. public static function detectEnvironment($environments){
  86. return \Illuminate\Foundation\Application::detectEnvironment($environments);
  87. }
  88. /**
  89. * Determine if we are running in the console.
  90. *
  91. * @return bool
  92. * @static
  93. */
  94. public static function runningInConsole(){
  95. return \Illuminate\Foundation\Application::runningInConsole();
  96. }
  97. /**
  98. * Determine if we are running unit tests.
  99. *
  100. * @return bool
  101. * @static
  102. */
  103. public static function runningUnitTests(){
  104. return \Illuminate\Foundation\Application::runningUnitTests();
  105. }
  106. /**
  107. * Register a service provider with the application.
  108. *
  109. * @param \Illuminate\Support\ServiceProvider|string $provider
  110. * @param array $options
  111. * @return void
  112. * @static
  113. */
  114. public static function register($provider, $options = array()){
  115. \Illuminate\Foundation\Application::register($provider, $options);
  116. }
  117. /**
  118. * Load and boot all of the remaining deferred providers.
  119. *
  120. * @return void
  121. * @static
  122. */
  123. public static function loadDeferredProviders(){
  124. \Illuminate\Foundation\Application::loadDeferredProviders();
  125. }
  126. /**
  127. * Resolve the given type from the container.
  128. *
  129. * (Overriding Container::make)
  130. *
  131. * @param string $abstract
  132. * @param array $parameters
  133. * @return mixed
  134. * @static
  135. */
  136. public static function make($abstract, $parameters = array()){
  137. return \Illuminate\Foundation\Application::make($abstract, $parameters);
  138. }
  139. /**
  140. * Register a "before" application filter.
  141. *
  142. * @param Closure|string $callback
  143. * @return void
  144. * @static
  145. */
  146. public static function before($callback){
  147. \Illuminate\Foundation\Application::before($callback);
  148. }
  149. /**
  150. * Register an "after" application filter.
  151. *
  152. * @param Closure|string $callback
  153. * @return void
  154. * @static
  155. */
  156. public static function after($callback){
  157. \Illuminate\Foundation\Application::after($callback);
  158. }
  159. /**
  160. * Register a "close" application filter.
  161. *
  162. * @param Closure|string $callback
  163. * @return void
  164. * @static
  165. */
  166. public static function close($callback){
  167. \Illuminate\Foundation\Application::close($callback);
  168. }
  169. /**
  170. * Register a "finish" application filter.
  171. *
  172. * @param Closure|string $callback
  173. * @return void
  174. * @static
  175. */
  176. public static function finish($callback){
  177. \Illuminate\Foundation\Application::finish($callback);
  178. }
  179. /**
  180. * Register a "shutdown" callback.
  181. *
  182. * @param callable $callback
  183. * @return void
  184. * @static
  185. */
  186. public static function shutdown($callback = null){
  187. \Illuminate\Foundation\Application::shutdown($callback);
  188. }
  189. /**
  190. * Handles the given request and delivers the response.
  191. *
  192. * @return void
  193. * @static
  194. */
  195. public static function run(){
  196. \Illuminate\Foundation\Application::run();
  197. }
  198. /**
  199. * Handle the given request and get the response.
  200. *
  201. * @param \Illuminate\Http\Request $request
  202. * @return \Symfony\Component\HttpFoundation\Response
  203. * @static
  204. */
  205. public static function dispatch($request){
  206. return \Illuminate\Foundation\Application::dispatch($request);
  207. }
  208. /**
  209. * Handle the given request and get the response.
  210. *
  211. * Provides compatibility with BrowserKit functional testing.
  212. *
  213. * @implements HttpKernelInterface::handle
  214. * @param \Illuminate\Http\Request $request
  215. * @param int $type
  216. * @param bool $catch
  217. * @return \Symfony\Component\HttpFoundation\Response
  218. * @static
  219. */
  220. public static function handle($request, $type = 1, $catch = true){
  221. return \Illuminate\Foundation\Application::handle($request, $type, $catch);
  222. }
  223. /**
  224. * Boot the application's service providers.
  225. *
  226. * @return void
  227. * @static
  228. */
  229. public static function boot(){
  230. \Illuminate\Foundation\Application::boot();
  231. }
  232. /**
  233. * Register a new boot listener.
  234. *
  235. * @param mixed $callback
  236. * @return void
  237. * @static
  238. */
  239. public static function booting($callback){
  240. \Illuminate\Foundation\Application::booting($callback);
  241. }
  242. /**
  243. * Register a new "booted" listener.
  244. *
  245. * @param mixed $callback
  246. * @return void
  247. * @static
  248. */
  249. public static function booted($callback){
  250. \Illuminate\Foundation\Application::booted($callback);
  251. }
  252. /**
  253. * Prepare the request by injecting any services.
  254. *
  255. * @param \Illuminate\Http\Request $request
  256. * @return \Illuminate\Http\Request
  257. * @static
  258. */
  259. public static function prepareRequest($request){
  260. return \Illuminate\Foundation\Application::prepareRequest($request);
  261. }
  262. /**
  263. * Prepare the given value as a Response object.
  264. *
  265. * @param mixed $value
  266. * @return \Symfony\Component\HttpFoundation\Response
  267. * @static
  268. */
  269. public static function prepareResponse($value){
  270. return \Illuminate\Foundation\Application::prepareResponse($value);
  271. }
  272. /**
  273. * Determine if the application is currently down for maintenance.
  274. *
  275. * @return bool
  276. * @static
  277. */
  278. public static function isDownForMaintenance(){
  279. return \Illuminate\Foundation\Application::isDownForMaintenance();
  280. }
  281. /**
  282. * Register a maintenance mode event listener.
  283. *
  284. * @param \Closure $callback
  285. * @return void
  286. * @static
  287. */
  288. public static function down($callback){
  289. \Illuminate\Foundation\Application::down($callback);
  290. }
  291. /**
  292. * Throw an HttpException with the given data.
  293. *
  294. * @param int $code
  295. * @param string $message
  296. * @param array $headers
  297. * @return void
  298. * @static
  299. */
  300. public static function abort($code, $message = '', $headers = array()){
  301. \Illuminate\Foundation\Application::abort($code, $message, $headers);
  302. }
  303. /**
  304. * Register a 404 error handler.
  305. *
  306. * @param Closure $callback
  307. * @return void
  308. * @static
  309. */
  310. public static function missing($callback){
  311. \Illuminate\Foundation\Application::missing($callback);
  312. }
  313. /**
  314. * Register an application error handler.
  315. *
  316. * @param \Closure $callback
  317. * @return void
  318. * @static
  319. */
  320. public static function error($callback){
  321. \Illuminate\Foundation\Application::error($callback);
  322. }
  323. /**
  324. * Register an error handler at the bottom of the stack.
  325. *
  326. * @param \Closure $callback
  327. * @return void
  328. * @static
  329. */
  330. public static function pushError($callback){
  331. \Illuminate\Foundation\Application::pushError($callback);
  332. }
  333. /**
  334. * Register an error handler for fatal errors.
  335. *
  336. * @param Closure $callback
  337. * @return void
  338. * @static
  339. */
  340. public static function fatal($callback){
  341. \Illuminate\Foundation\Application::fatal($callback);
  342. }
  343. /**
  344. * Get the configuration loader instance.
  345. *
  346. * @return \Illuminate\Config\LoaderInterface
  347. * @static
  348. */
  349. public static function getConfigLoader(){
  350. return \Illuminate\Foundation\Application::getConfigLoader();
  351. }
  352. /**
  353. * Get the service provider repository instance.
  354. *
  355. * @return \Illuminate\Foundation\ProviderRepository
  356. * @static
  357. */
  358. public static function getProviderRepository(){
  359. return \Illuminate\Foundation\Application::getProviderRepository();
  360. }
  361. /**
  362. * Set the current application locale.
  363. *
  364. * @param string $locale
  365. * @return void
  366. * @static
  367. */
  368. public static function setLocale($locale){
  369. \Illuminate\Foundation\Application::setLocale($locale);
  370. }
  371. /**
  372. * Get the service providers that have been loaded.
  373. *
  374. * @return array
  375. * @static
  376. */
  377. public static function getLoadedProviders(){
  378. return \Illuminate\Foundation\Application::getLoadedProviders();
  379. }
  380. /**
  381. * Set the application's deferred services.
  382. *
  383. * @param array $services
  384. * @return void
  385. * @static
  386. */
  387. public static function setDeferredServices($services){
  388. \Illuminate\Foundation\Application::setDeferredServices($services);
  389. }
  390. /**
  391. * Dynamically access application services.
  392. *
  393. * @param string $key
  394. * @return mixed
  395. * @static
  396. */
  397. public static function __get($key){
  398. return \Illuminate\Foundation\Application::__get($key);
  399. }
  400. /**
  401. * Dynamically set application services.
  402. *
  403. * @param string $key
  404. * @param mixed $value
  405. * @return void
  406. * @static
  407. */
  408. public static function __set($key, $value){
  409. \Illuminate\Foundation\Application::__set($key, $value);
  410. }
  411. /**
  412. * Determine if the given abstract type has been bound.
  413. *
  414. * @param string $abstract
  415. * @return bool
  416. * @static
  417. */
  418. public static function bound($abstract){
  419. return \Illuminate\Container\Container::bound($abstract);
  420. }
  421. /**
  422. * Register a binding with the container.
  423. *
  424. * @param string $abstract
  425. * @param Closure|string|null $concrete
  426. * @param bool $shared
  427. * @return void
  428. * @static
  429. */
  430. public static function bind($abstract, $concrete = null, $shared = false){
  431. \Illuminate\Container\Container::bind($abstract, $concrete, $shared);
  432. }
  433. /**
  434. * Register a binding if it hasn't already been registered.
  435. *
  436. * @param string $abstract
  437. * @param Closure|string|null $concrete
  438. * @param bool $shared
  439. * @return bool
  440. * @static
  441. */
  442. public static function bindIf($abstract, $concrete = null, $shared = false){
  443. return \Illuminate\Container\Container::bindIf($abstract, $concrete, $shared);
  444. }
  445. /**
  446. * Register a shared binding in the container.
  447. *
  448. * @param string $abstract
  449. * @param Closure|string|null $concrete
  450. * @return void
  451. * @static
  452. */
  453. public static function singleton($abstract, $concrete = null){
  454. \Illuminate\Container\Container::singleton($abstract, $concrete);
  455. }
  456. /**
  457. * Wrap a Closure such that it is shared.
  458. *
  459. * @param Closure $closure
  460. * @return Closure
  461. * @static
  462. */
  463. public static function share($closure){
  464. return \Illuminate\Container\Container::share($closure);
  465. }
  466. /**
  467. * "Extend" an abstract type in the container.
  468. *
  469. * @param string $abstract
  470. * @param Closure $closure
  471. * @return void
  472. * @static
  473. */
  474. public static function extend($abstract, $closure){
  475. \Illuminate\Container\Container::extend($abstract, $closure);
  476. }
  477. /**
  478. * Register an existing instance as shared in the container.
  479. *
  480. * @param string $abstract
  481. * @param mixed $instance
  482. * @return void
  483. * @static
  484. */
  485. public static function instance($abstract, $instance){
  486. \Illuminate\Container\Container::instance($abstract, $instance);
  487. }
  488. /**
  489. * Alias a type to a shorter name.
  490. *
  491. * @param string $abstract
  492. * @param string $alias
  493. * @return void
  494. * @static
  495. */
  496. public static function alias($abstract, $alias){
  497. \Illuminate\Container\Container::alias($abstract, $alias);
  498. }
  499. /**
  500. * Instantiate a concrete instance of the given type.
  501. *
  502. * @param string $concrete
  503. * @param array $parameters
  504. * @return mixed
  505. * @static
  506. */
  507. public static function build($concrete, $parameters = array()){
  508. return \Illuminate\Container\Container::build($concrete, $parameters);
  509. }
  510. /**
  511. * Register a new resolving callback.
  512. *
  513. * @param Closure $callback
  514. * @return void
  515. * @static
  516. */
  517. public static function resolving($callback){
  518. \Illuminate\Container\Container::resolving($callback);
  519. }
  520. /**
  521. * Get the container's bindings.
  522. *
  523. * @return array
  524. * @static
  525. */
  526. public static function getBindings(){
  527. return \Illuminate\Container\Container::getBindings();
  528. }
  529. /**
  530. * Determine if a given offset exists.
  531. *
  532. * @param string $key
  533. * @return bool
  534. * @static
  535. */
  536. public static function offsetExists($key){
  537. return \Illuminate\Container\Container::offsetExists($key);
  538. }
  539. /**
  540. * Get the value at a given offset.
  541. *
  542. * @param string $key
  543. * @return mixed
  544. * @static
  545. */
  546. public static function offsetGet($key){
  547. return \Illuminate\Container\Container::offsetGet($key);
  548. }
  549. /**
  550. * Set the value at a given offset.
  551. *
  552. * @param string $key
  553. * @param mixed $value
  554. * @return void
  555. * @static
  556. */
  557. public static function offsetSet($key, $value){
  558. \Illuminate\Container\Container::offsetSet($key, $value);
  559. }
  560. /**
  561. * Unset the value at a given offset.
  562. *
  563. * @param string $key
  564. * @return void
  565. * @static
  566. */
  567. public static function offsetUnset($key){
  568. \Illuminate\Container\Container::offsetUnset($key);
  569. }
  570. }
  571. }
  572. namespace {
  573. class Artisan extends Illuminate\Support\Facades\Artisan{
  574. /**
  575. * Start a new Console application.
  576. *
  577. * @param \Illuminate\Foundation\Application $app
  578. * @return \Illuminate\Console\Application
  579. * @static
  580. */
  581. public static function start($app){
  582. return \Illuminate\Console\Application::start($app);
  583. }
  584. /**
  585. * Add a command to the console.
  586. *
  587. * @param \Symfony\Component\Console\Command\Command $command
  588. * @return \Symfony\Component\Console\Command\Command
  589. * @static
  590. */
  591. public static function add($command){
  592. return \Illuminate\Console\Application::add($command);
  593. }
  594. /**
  595. * Add a command, resolving through the application.
  596. *
  597. * @param string $command
  598. * @return void
  599. * @static
  600. */
  601. public static function resolve($command){
  602. \Illuminate\Console\Application::resolve($command);
  603. }
  604. /**
  605. * Resolve an array of commands through the application.
  606. *
  607. * @param array|dynamic $commands
  608. * @return void
  609. * @static
  610. */
  611. public static function resolveCommands($commands){
  612. \Illuminate\Console\Application::resolveCommands($commands);
  613. }
  614. /**
  615. * Render the given exception.
  616. *
  617. * @param Exception $e
  618. * @param \Symfony\Component\Console\Output\OutputInterface $output
  619. * @return void
  620. * @static
  621. */
  622. public static function renderException($e, $output){
  623. \Illuminate\Console\Application::renderException($e, $output);
  624. }
  625. /**
  626. * Set the exception handler instance.
  627. *
  628. * @param \Illuminate\Exception\Handler $handler
  629. * @return void
  630. * @static
  631. */
  632. public static function setExceptionHandler($handler){
  633. \Illuminate\Console\Application::setExceptionHandler($handler);
  634. }
  635. /**
  636. * Set the Laravel application instance.
  637. *
  638. * @param \Illuminate\Foundation\Application $laravel
  639. * @return void
  640. * @static
  641. */
  642. public static function setLaravel($laravel){
  643. \Illuminate\Console\Application::setLaravel($laravel);
  644. }
  645. /**
  646. * Constructor.
  647. *
  648. * @param string $name The name of the application
  649. * @param string $version The version of the application
  650. * @api
  651. * @static
  652. */
  653. public static function __construct($name = 'UNKNOWN', $version = 'UNKNOWN'){
  654. \Symfony\Component\Console\Application::__construct($name, $version);
  655. }
  656. /**
  657. *
  658. *
  659. * @static
  660. */
  661. public static function setDispatcher($dispatcher){
  662. \Symfony\Component\Console\Application::setDispatcher($dispatcher);
  663. }
  664. /**
  665. * Runs the current application.
  666. *
  667. * @param InputInterface $input An Input instance
  668. * @param OutputInterface $output An Output instance
  669. * @return integer 0 if everything went fine, or an error code
  670. * @throws \Exception When doRun returns Exception
  671. * @api
  672. * @static
  673. */
  674. public static function run($input = null, $output = null){
  675. return \Symfony\Component\Console\Application::run($input, $output);
  676. }
  677. /**
  678. * Runs the current application.
  679. *
  680. * @param InputInterface $input An Input instance
  681. * @param OutputInterface $output An Output instance
  682. * @return integer 0 if everything went fine, or an error code
  683. * @static
  684. */
  685. public static function doRun($input, $output){
  686. return \Symfony\Component\Console\Application::doRun($input, $output);
  687. }
  688. /**
  689. * Set a helper set to be used with the command.
  690. *
  691. * @param HelperSet $helperSet The helper set
  692. * @api
  693. * @static
  694. */
  695. public static function setHelperSet($helperSet){
  696. \Symfony\Component\Console\Application::setHelperSet($helperSet);
  697. }
  698. /**
  699. * Get the helper set associated with the command.
  700. *
  701. * @return HelperSet The HelperSet instance associated with this command
  702. * @api
  703. * @static
  704. */
  705. public static function getHelperSet(){
  706. return \Symfony\Component\Console\Application::getHelperSet();
  707. }
  708. /**
  709. * Set an input definition set to be used with this application
  710. *
  711. * @param InputDefinition $definition The input definition
  712. * @api
  713. * @static
  714. */
  715. public static function setDefinition($definition){
  716. \Symfony\Component\Console\Application::setDefinition($definition);
  717. }
  718. /**
  719. * Gets the InputDefinition related to this Application.
  720. *
  721. * @return InputDefinition The InputDefinition instance
  722. * @static
  723. */
  724. public static function getDefinition(){
  725. return \Symfony\Component\Console\Application::getDefinition();
  726. }
  727. /**
  728. * Gets the help message.
  729. *
  730. * @return string A help message.
  731. * @static
  732. */
  733. public static function getHelp(){
  734. return \Symfony\Component\Console\Application::getHelp();
  735. }
  736. /**
  737. * Sets whether to catch exceptions or not during commands execution.
  738. *
  739. * @param Boolean $boolean Whether to catch exceptions or not during commands execution
  740. * @api
  741. * @static
  742. */
  743. public static function setCatchExceptions($boolean){
  744. \Symfony\Component\Console\Application::setCatchExceptions($boolean);
  745. }
  746. /**
  747. * Sets whether to automatically exit after a command execution or not.
  748. *
  749. * @param Boolean $boolean Whether to automatically exit after a command execution or not
  750. * @api
  751. * @static
  752. */
  753. public static function setAutoExit($boolean){
  754. \Symfony\Component\Console\Application::setAutoExit($boolean);
  755. }
  756. /**
  757. * Gets the name of the application.
  758. *
  759. * @return string The application name
  760. * @api
  761. * @static
  762. */
  763. public static function getName(){
  764. return \Symfony\Component\Console\Application::getName();
  765. }
  766. /**
  767. * Sets the application name.
  768. *
  769. * @param string $name The application name
  770. * @api
  771. * @static
  772. */
  773. public static function setName($name){
  774. \Symfony\Component\Console\Application::setName($name);
  775. }
  776. /**
  777. * Gets the application version.
  778. *
  779. * @return string The application version
  780. * @api
  781. * @static
  782. */
  783. public static function getVersion(){
  784. return \Symfony\Component\Console\Application::getVersion();
  785. }
  786. /**
  787. * Sets the application version.
  788. *
  789. * @param string $version The application version
  790. * @api
  791. * @static
  792. */
  793. public static function setVersion($version){
  794. \Symfony\Component\Console\Application::setVersion($version);
  795. }
  796. /**
  797. * Returns the long version of the application.
  798. *
  799. * @return string The long application version
  800. * @api
  801. * @static
  802. */
  803. public static function getLongVersion(){
  804. return \Symfony\Component\Console\Application::getLongVersion();
  805. }
  806. /**
  807. * Registers a new command.
  808. *
  809. * @param string $name The command name
  810. * @return Command The newly created command
  811. * @api
  812. * @static
  813. */
  814. public static function register($name){
  815. return \Symfony\Component\Console\Application::register($name);
  816. }
  817. /**
  818. * Adds an array of command objects.
  819. *
  820. * @param Command[] $commands An array of commands
  821. * @api
  822. * @static
  823. */
  824. public static function addCommands($commands){
  825. \Symfony\Component\Console\Application::addCommands($commands);
  826. }
  827. /**
  828. * Returns a registered command by name or alias.
  829. *
  830. * @param string $name The command name or alias
  831. * @return Command A Command object
  832. * @throws \InvalidArgumentException When command name given does not exist
  833. * @api
  834. * @static
  835. */
  836. public static function get($name){
  837. return \Symfony\Component\Console\Application::get($name);
  838. }
  839. /**
  840. * Returns true if the command exists, false otherwise.
  841. *
  842. * @param string $name The command name or alias
  843. * @return Boolean true if the command exists, false otherwise
  844. * @api
  845. * @static
  846. */
  847. public static function has($name){
  848. return \Symfony\Component\Console\Application::has($name);
  849. }
  850. /**
  851. * Returns an array of all unique namespaces used by currently registered commands.
  852. *
  853. * It does not returns the global namespace which always exists.
  854. *
  855. * @return array An array of namespaces
  856. * @static
  857. */
  858. public static function getNamespaces(){
  859. return \Symfony\Component\Console\Application::getNamespaces();
  860. }
  861. /**
  862. * Finds a registered namespace by a name or an abbreviation.
  863. *
  864. * @param string $namespace A namespace or abbreviation to search for
  865. * @return string A registered namespace
  866. * @throws \InvalidArgumentException When namespace is incorrect or ambiguous
  867. * @static
  868. */
  869. public static function findNamespace($namespace){
  870. return \Symfony\Component\Console\Application::findNamespace($namespace);
  871. }
  872. /**
  873. * Finds a command by name or alias.
  874. *
  875. * Contrary to get, this command tries to find the best
  876. * match if you give it an abbreviation of a name or alias.
  877. *
  878. * @param string $name A command name or a command alias
  879. * @return Command A Command instance
  880. * @throws \InvalidArgumentException When command name is incorrect or ambiguous
  881. * @api
  882. * @static
  883. */
  884. public static function find($name){
  885. return \Symfony\Component\Console\Application::find($name);
  886. }
  887. /**
  888. * Gets the commands (registered in the given namespace if provided).
  889. *
  890. * The array keys are the full names and the values the command instances.
  891. *
  892. * @param string $namespace A namespace name
  893. * @return Command[] An array of Command instances
  894. * @api
  895. * @static
  896. */
  897. public static function all($namespace = null){
  898. return \Symfony\Component\Console\Application::all($namespace);
  899. }
  900. /**
  901. * Returns an array of possible abbreviations given a set of names.
  902. *
  903. * @param array $names An array of names
  904. * @return array An array of abbreviations
  905. * @static
  906. */
  907. public static function getAbbreviations($names){
  908. return \Symfony\Component\Console\Application::getAbbreviations($names);
  909. }
  910. /**
  911. * Returns a text representation of the Application.
  912. *
  913. * @param string $namespace An optional namespace name
  914. * @param boolean $raw Whether to return raw command list
  915. * @return string A string representing the Application
  916. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  917. * @static
  918. */
  919. public static function asText($namespace = null, $raw = false){
  920. return \Symfony\Component\Console\Application::asText($namespace, $raw);
  921. }
  922. /**
  923. * Returns an XML representation of the Application.
  924. *
  925. * @param string $namespace An optional namespace name
  926. * @param Boolean $asDom Whether to return a DOM or an XML string
  927. * @return string|\DOMDocument An XML string representing the Application
  928. * @deprecated Deprecated since version 2.3, to be removed in 3.0.
  929. * @static
  930. */
  931. public static function asXml($namespace = null, $asDom = false){
  932. return \Symfony\Component\Console\Application::asXml($namespace, $asDom);
  933. }
  934. /**
  935. * Tries to figure out the terminal dimensions based on the current environment
  936. *
  937. * @return array Array containing width and height
  938. * @static
  939. */
  940. public static function getTerminalDimensions(){
  941. return \Symfony\Component\Console\Application::getTerminalDimensions();
  942. }
  943. /**
  944. * Returns the namespace part of the command name.
  945. *
  946. * This method is not part of public API and should not be used directly.
  947. *
  948. * @param string $name The full name of the command
  949. * @param string $limit The maximum number of parts of the namespace
  950. * @return string The namespace of the command
  951. * @static
  952. */
  953. public static function extractNamespace($name, $limit = null){
  954. return \Symfony\Component\Console\Application::extractNamespace($name, $limit);
  955. }
  956. }
  957. }
  958. namespace {
  959. class Auth extends Illuminate\Support\Facades\Auth{
  960. /**
  961. * Create an instance of the Eloquent driver.
  962. *
  963. * @return \Illuminate\Auth\Guard
  964. * @static
  965. */
  966. public static function createEloquentDriver(){
  967. return \Illuminate\Auth\AuthManager::createEloquentDriver();
  968. }
  969. /**
  970. * Create a new manager instance.
  971. *
  972. * @param \Illuminate\Foundation\Application $app
  973. * @return self
  974. * @static
  975. */
  976. public static function __construct($app){
  977. \Illuminate\Support\Manager::__construct($app);
  978. }
  979. /**
  980. * Get a driver instance.
  981. *
  982. * @param string $driver
  983. * @return mixed
  984. * @static
  985. */
  986. public static function driver($driver = null){
  987. return \Illuminate\Support\Manager::driver($driver);
  988. }
  989. /**
  990. * Register a custom driver creator Closure.
  991. *
  992. * @param string $driver
  993. * @param Closure $callback
  994. * @return void
  995. * @static
  996. */
  997. public static function extend($driver, $callback){
  998. \Illuminate\Support\Manager::extend($driver, $callback);
  999. }
  1000. /**
  1001. * Get all of the created "drivers".
  1002. *
  1003. * @return array
  1004. * @static
  1005. */
  1006. public static function getDrivers(){
  1007. return \Illuminate\Support\Manager::getDrivers();
  1008. }
  1009. /**
  1010. * Dynamically call the default driver instance.
  1011. *
  1012. * @param string $method
  1013. * @param array $parameters
  1014. * @return mixed
  1015. * @static
  1016. */
  1017. public static function __call($method, $parameters){
  1018. return \Illuminate\Support\Manager::__call($method, $parameters);
  1019. }
  1020. /**
  1021. * Determine if the current user is authenticated.
  1022. *
  1023. * @return bool
  1024. * @static
  1025. */
  1026. public static function check(){
  1027. return \Illuminate\Auth\Guard::check();
  1028. }
  1029. /**
  1030. * Determine if the current user is a guest.
  1031. *
  1032. * @return bool
  1033. * @static
  1034. */
  1035. public static function guest(){
  1036. return \Illuminate\Auth\Guard::guest();
  1037. }
  1038. /**
  1039. * Get the currently authenticated user.
  1040. *
  1041. * @return \Illuminate\Auth\UserInterface|null
  1042. * @static
  1043. */
  1044. public static function user(){
  1045. return \Illuminate\Auth\Guard::user();
  1046. }
  1047. /**
  1048. * Log a user into the application without sessions or cookies.
  1049. *
  1050. * @param array $credentials
  1051. * @return bool
  1052. * @static
  1053. */
  1054. public static function once($credentials = array()){
  1055. return \Illuminate\Auth\Guard::once($credentials);
  1056. }
  1057. /**
  1058. * Validate a user's credentials.
  1059. *
  1060. * @param array $credentials
  1061. * @return bool
  1062. * @static
  1063. */
  1064. public static function validate($credentials = array()){
  1065. return \Illuminate\Auth\Guard::validate($credentials);
  1066. }
  1067. /**
  1068. * Attempt to authenticate using HTTP Basic Auth.
  1069. *
  1070. * @param string $field
  1071. * @param \Symfony\Component\HttpFoundation\Request $request
  1072. * @return \Symfony\Component\HttpFoundation\Response|null
  1073. * @static
  1074. */
  1075. public static function basic($field = 'email', $request = null){
  1076. return \Illuminate\Auth\Guard::basic($field, $request);
  1077. }
  1078. /**
  1079. * Perform a stateless HTTP Basic login attempt.
  1080. *
  1081. * @param string $field
  1082. * @param \Symfony\Component\HttpFoundation\Request $request
  1083. * @return \Symfony\Component\HttpFoundation\Response|null
  1084. * @static
  1085. */
  1086. public static function onceBasic($field = 'email', $request = null){
  1087. return \Illuminate\Auth\Guard::onceBasic($field, $request);
  1088. }
  1089. /**
  1090. * Attempt to authenticate a user using the given credentials.
  1091. *
  1092. * @param array $credentials
  1093. * @param bool $remember
  1094. * @param bool $login
  1095. * @return bool
  1096. * @static
  1097. */
  1098. public static function attempt($credentials = array(), $remember = false, $login = true){
  1099. return \Illuminate\Auth\Guard::attempt($credentials, $remember, $login);
  1100. }
  1101. /**
  1102. * Register an authentication attempt event listener.
  1103. *
  1104. * @param mixed $callback
  1105. * @return void
  1106. * @static
  1107. */
  1108. public static function attempting($callback){
  1109. \Illuminate\Auth\Guard::attempting($callback);
  1110. }
  1111. /**
  1112. * Log a user into the application.
  1113. *
  1114. * @param \Illuminate\Auth\UserInterface $user
  1115. * @param bool $remember
  1116. * @return void
  1117. * @static
  1118. */
  1119. public static function login($user, $remember = false){
  1120. \Illuminate\Auth\Guard::login($user, $remember);
  1121. }
  1122. /**
  1123. * Log the given user ID into the application.
  1124. *
  1125. * @param mixed $id
  1126. * @param bool $remember
  1127. * @return \Illuminate\Auth\UserInterface
  1128. * @static
  1129. */
  1130. public static function loginUsingId($id, $remember = false){
  1131. return \Illuminate\Auth\Guard::loginUsingId($id, $remember);
  1132. }
  1133. /**
  1134. * Log the user out of the application.
  1135. *
  1136. * @return void
  1137. * @static
  1138. */
  1139. public static function logout(){
  1140. \Illuminate\Auth\Guard::logout();
  1141. }
  1142. /**
  1143. * Get the cookies queued by the guard.
  1144. *
  1145. * @return array
  1146. * @static
  1147. */
  1148. public static function getQueuedCookies(){
  1149. return \Illuminate\Auth\Guard::getQueuedCookies();
  1150. }
  1151. /**
  1152. * Get the cookie creator instance used by the guard.
  1153. *
  1154. * @return \Illuminate\Cookie\CookieJar
  1155. * @static
  1156. */
  1157. public static function getCookieJar(){
  1158. return \Illuminate\Auth\Guard::getCookieJar();
  1159. }
  1160. /**
  1161. * Set the cookie creator instance used by the guard.
  1162. *
  1163. * @param \Illuminate\Cookie\CookieJar $cookie
  1164. * @return void
  1165. * @static
  1166. */
  1167. public static function setCookieJar($cookie){
  1168. \Illuminate\Auth\Guard::setCookieJar($cookie);
  1169. }
  1170. /**
  1171. * Get the event dispatcher instance.
  1172. *
  1173. * @return \Illuminate\Events\Dispatcher
  1174. * @static
  1175. */
  1176. public static function getDispatcher(){
  1177. return \Illuminate\Auth\Guard::getDispatcher();
  1178. }
  1179. /**
  1180. * Set the event dispatcher instance.
  1181. *
  1182. * @param \Illuminate\Events\Dispatcher
  1183. * @static
  1184. */
  1185. public static function setDispatcher($events){
  1186. \Illuminate\Auth\Guard::setDispatcher($events);
  1187. }
  1188. /**
  1189. * Get the session store used by the guard.
  1190. *
  1191. * @return \Illuminate\Session\Store
  1192. * @static
  1193. */
  1194. public static function getSession(){
  1195. return \Illuminate\Auth\Guard::getSession();
  1196. }
  1197. /**
  1198. * Get the user provider used by the guard.
  1199. *
  1200. * @return \Illuminate\Auth\UserProviderInterface
  1201. * @static
  1202. */
  1203. public static function getProvider(){
  1204. return \Illuminate\Auth\Guard::getProvider();
  1205. }
  1206. /**
  1207. * Set the user provider used by the guard.
  1208. *
  1209. * @param \Illuminate\Auth\UserProviderInterface $provider
  1210. * @return void
  1211. * @static
  1212. */
  1213. public static function setProvider($provider){
  1214. \Illuminate\Auth\Guard::setProvider($provider);
  1215. }
  1216. /**
  1217. * Return the currently cached user of the application.
  1218. *
  1219. * @return \Illuminate\Auth\UserInterface|null
  1220. * @static
  1221. */
  1222. public static function getUser(){
  1223. return \Illuminate\Auth\Guard::getUser();
  1224. }
  1225. /**
  1226. * Set the current user of the application.
  1227. *
  1228. * @param \Illuminate\Auth\UserInterface $user
  1229. * @return void
  1230. * @static
  1231. */
  1232. public static function setUser($user){
  1233. \Illuminate\Auth\Guard::setUser($user);
  1234. }
  1235. /**
  1236. * Get the current request instance.
  1237. *
  1238. * @return \Symfony\Component\HttpFoundation\Request
  1239. * @static
  1240. */
  1241. public static function getRequest(){
  1242. return \Illuminate\Auth\Guard::getRequest();
  1243. }
  1244. /**
  1245. * Set the current request instance.
  1246. *
  1247. * @param \Symfony\Component\HttpFoundation\Request
  1248. * @return \Illuminate\Auth\Guard
  1249. * @static
  1250. */
  1251. public static function setRequest($request){
  1252. return \Illuminate\Auth\Guard::setRequest($request);
  1253. }
  1254. /**
  1255. * Get a unique identifier for the auth session value.
  1256. *
  1257. * @return string
  1258. * @static
  1259. */
  1260. public static function getName(){
  1261. return \Illuminate\Auth\Guard::getName();
  1262. }
  1263. /**
  1264. * Get the name of the cookie used to store the "recaller".
  1265. *
  1266. * @return string
  1267. * @static
  1268. */
  1269. public static function getRecallerName(){
  1270. return \Illuminate\Auth\Guard::getRecallerName();
  1271. }
  1272. }
  1273. }
  1274. namespace {
  1275. class Blade extends Illuminate\Support\Facades\Blade{
  1276. /**
  1277. * Compile the view at the given path.
  1278. *
  1279. * @param string $path
  1280. * @return void
  1281. * @static
  1282. */
  1283. public static function compile($path){
  1284. \Illuminate\View\Compilers\BladeCompiler::compile($path);
  1285. }
  1286. /**
  1287. * Compile the given Blade template contents.
  1288. *
  1289. * @param string $value
  1290. * @return string
  1291. * @static
  1292. */
  1293. public static function compileString($value){
  1294. return \Illuminate\View\Compilers\BladeCompiler::compileString($value);
  1295. }
  1296. /**
  1297. * Register a custom Blade compiler.
  1298. *
  1299. * @param Closure $compiler
  1300. * @return void
  1301. * @static
  1302. */
  1303. public static function extend($compiler){
  1304. \Illuminate\View\Compilers\BladeCompiler::extend($compiler);
  1305. }
  1306. /**
  1307. * Get the regular expression for a generic Blade function.
  1308. *
  1309. * @param string $function
  1310. * @return string
  1311. * @static
  1312. */
  1313. public static function createMatcher($function){
  1314. return \Illuminate\View\Compilers\BladeCompiler::createMatcher($function);
  1315. }
  1316. /**
  1317. * Get the regular expression for a generic Blade function.
  1318. *
  1319. * @param string $function
  1320. * @return string
  1321. * @static
  1322. */
  1323. public static function createOpenMatcher($function){
  1324. return \Illuminate\View\Compilers\BladeCompiler::createOpenMatcher($function);
  1325. }
  1326. /**
  1327. * Create a plain Blade matcher.
  1328. *
  1329. * @param string $function
  1330. * @return string
  1331. * @static
  1332. */
  1333. public static function createPlainMatcher($function){
  1334. return \Illuminate\View\Compilers\BladeCompiler::createPlainMatcher($function);
  1335. }
  1336. /**
  1337. * Sets the content tags used for the compiler.
  1338. *
  1339. * @param string $openTag
  1340. * @param string $closeTag
  1341. * @param bool $escaped
  1342. * @return void
  1343. * @static
  1344. */
  1345. public static function setContentTags($openTag, $closeTag, $escaped = false){
  1346. \Illuminate\View\Compilers\BladeCompiler::setContentTags($openTag, $closeTag, $escaped);
  1347. }
  1348. /**
  1349. * Sets the escaped content tags used for the compiler.
  1350. *
  1351. * @param string $openTag
  1352. * @param string $closeTag
  1353. * @return void
  1354. * @static
  1355. */
  1356. public static function setEscapedContentTags($openTag, $closeTag){
  1357. \Illuminate\View\Compilers\BladeCompiler::setEscapedContentTags($openTag, $closeTag);
  1358. }
  1359. /**
  1360. * Create a new compiler instance.
  1361. *
  1362. * @param \Illuminate\Filesystem\Filesystem $files
  1363. * @param string $cachePath
  1364. * @return self
  1365. * @static
  1366. */
  1367. public static function __construct($files, $cachePath){
  1368. \Illuminate\View\Compilers\Compiler::__construct($files, $cachePath);
  1369. }
  1370. /**
  1371. * Get the path to the compiled version of a view.
  1372. *
  1373. * @param string $path
  1374. * @return string
  1375. * @static
  1376. */
  1377. public static function getCompiledPath($path){
  1378. return \Illuminate\View\Compilers\Compiler::getCompiledPath($path);
  1379. }
  1380. /**
  1381. * Determine if the view at the given path is expired.
  1382. *
  1383. * @param string $path
  1384. * @return bool
  1385. * @static
  1386. */
  1387. public static function isExpired($path){
  1388. return \Illuminate\View\Compilers\Compiler::isExpired($path);
  1389. }
  1390. }
  1391. }
  1392. namespace {
  1393. class Cache extends Illuminate\Support\Facades\Cache{
  1394. /**
  1395. * Get the cache "prefix" value.
  1396. *
  1397. * @return string
  1398. * @static
  1399. */
  1400. public static function getPrefix(){
  1401. return \Illuminate\Cache\CacheManager::getPrefix();
  1402. }
  1403. /**
  1404. * Create a new manager instance.
  1405. *
  1406. * @param \Illuminate\Foundation\Application $app
  1407. * @return self
  1408. * @static
  1409. */
  1410. public static function __construct($app){
  1411. \Illuminate\Support\Manager::__construct($app);
  1412. }
  1413. /**
  1414. * Get a driver instance.
  1415. *
  1416. * @param string $driver
  1417. * @return mixed
  1418. * @static
  1419. */
  1420. public static function driver($driver = null){
  1421. return \Illuminate\Support\Manager::driver($driver);
  1422. }
  1423. /**
  1424. * Register a custom driver creator Closure.
  1425. *
  1426. * @param string $driver
  1427. * @param Closure $callback
  1428. * @return void
  1429. * @static
  1430. */
  1431. public static function extend($driver, $callback){
  1432. \Illuminate\Support\Manager::extend($driver, $callback);
  1433. }
  1434. /**
  1435. * Get all of the created "drivers".
  1436. *
  1437. * @return array
  1438. * @static
  1439. */
  1440. public static function getDrivers(){
  1441. return \Illuminate\Support\Manager::getDrivers();
  1442. }
  1443. /**
  1444. * Dynamically call the default driver instance.
  1445. *
  1446. * @param string $method
  1447. * @param array $parameters
  1448. * @return mixed
  1449. * @static
  1450. */
  1451. public static function __call($method, $parameters){
  1452. return \Illuminate\Support\Manager::__call($method, $parameters);
  1453. }
  1454. /**
  1455. * Retrieve an item from the cache by key.
  1456. *
  1457. * @param string $key
  1458. * @return mixed
  1459. * @static
  1460. */
  1461. public static function get($key){
  1462. return \Illuminate\Cache\StoreInterface::get($key);
  1463. }
  1464. /**
  1465. * Store an item in the cache for a given number of minutes.
  1466. *
  1467. * @param string $key
  1468. * @param mixed $value
  1469. * @param int $minutes
  1470. * @return void
  1471. * @static
  1472. */
  1473. public static function put($key, $value, $minutes){
  1474. \Illuminate\Cache\StoreInterface::put($key, $value, $minutes);
  1475. }
  1476. /**
  1477. * Increment the value of an item in the cache.
  1478. *
  1479. * @param string $key
  1480. * @param mixed $value
  1481. * @return void
  1482. * @static
  1483. */
  1484. public static function increment($key, $value = 1){
  1485. \Illuminate\Cache\StoreInterface::increment($key, $value);
  1486. }
  1487. /**
  1488. * Decrement the value of an item in the cache.
  1489. *
  1490. * @param string $key
  1491. * @param mixed $value
  1492. * @return void
  1493. * @static
  1494. */
  1495. public static function decrement($key, $value = 1){
  1496. \Illuminate\Cache\StoreInterface::decrement($key, $value);
  1497. }
  1498. /**
  1499. * Store an item in the cache indefinitely.
  1500. *
  1501. * @param string $key
  1502. * @param mixed $value
  1503. * @return void
  1504. * @static
  1505. */
  1506. public static function forever($key, $value){
  1507. \Illuminate\Cache\StoreInterface::forever($key, $value);
  1508. }
  1509. /**
  1510. * Remove an item from the cache.
  1511. *
  1512. * @param string $key
  1513. * @return void
  1514. * @static
  1515. */
  1516. public static function forget($key){
  1517. \Illuminate\Cache\StoreInterface::forget($key);
  1518. }
  1519. /**
  1520. * Remove all items from the cache.
  1521. *
  1522. * @return void
  1523. * @static
  1524. */
  1525. public static function flush(){
  1526. \Illuminate\Cache\StoreInterface::flush();
  1527. }
  1528. /**
  1529. * Determine if an item exists in the cache.
  1530. *
  1531. * @param string $key
  1532. * @return bool
  1533. * @static
  1534. */
  1535. public static function has($key){
  1536. return \Illuminate\Cache\Repository::has($key);
  1537. }
  1538. /**
  1539. * Store an item in the cache if the key does not exist.
  1540. *
  1541. * @param string $key
  1542. * @param mixed $value
  1543. * @param int $minutes
  1544. * @return void
  1545. * @static
  1546. */
  1547. public static function add($key, $value, $minutes){
  1548. \Illuminate\Cache\Repository::add($key, $value, $minutes);
  1549. }
  1550. /**
  1551. * Get an item from the cache, or store the default value.
  1552. *
  1553. * @param string $key
  1554. * @param int $minutes
  1555. * @param Closure $callback
  1556. * @return mixed
  1557. * @static
  1558. */
  1559. public static function remember($key, $minutes, $callback){
  1560. return \Illuminate\Cache\Repository::remember($key, $minutes, $callback);
  1561. }
  1562. /**
  1563. * Get an item from the cache, or store the default value forever.
  1564. *
  1565. * @param string $key
  1566. * @param Closure $callback
  1567. * @return mixed
  1568. * @static
  1569. */
  1570. public static function sear($key, $callback){
  1571. return \Illuminate\Cache\Repository::sear($key, $callback);
  1572. }
  1573. /**
  1574. * Get an item from the cache, or store the default value forever.
  1575. *
  1576. * @param string $key
  1577. * @param Closure $callback
  1578. * @return mixed
  1579. * @static
  1580. */
  1581. public static function rememberForever($key, $callback){
  1582. return \Illuminate\Cache\Repository::rememberForever($key, $callback);
  1583. }
  1584. /**
  1585. * Get the default cache time.
  1586. *
  1587. * @return int
  1588. * @static
  1589. */
  1590. public static function getDefaultCacheTime(){
  1591. return \Illuminate\Cache\Repository::getDefaultCacheTime();
  1592. }
  1593. /**
  1594. * Set the default cache time in minutes.
  1595. *
  1596. * @param int $minutes
  1597. * @return void
  1598. * @static
  1599. */
  1600. public static function setDefaultCacheTime($minutes){
  1601. \Illuminate\Cache\Repository::setDefaultCacheTime($minutes);
  1602. }
  1603. /**
  1604. * Get the cache store implementation.
  1605. *
  1606. * @return \Illuminate\Cache\StoreInterface
  1607. * @static
  1608. */
  1609. public static function getStore(){
  1610. return \Illuminate\Cache\Repository::getStore();
  1611. }
  1612. /**
  1613. * Determine if a cached value exists.
  1614. *
  1615. * @param string $key
  1616. * @return bool
  1617. * @static
  1618. */
  1619. public static function offsetExists($key){
  1620. return \Illuminate\Cache\Repository::offsetExists($key);
  1621. }
  1622. /**
  1623. * Retrieve an item from the cache by key.
  1624. *
  1625. * @param string $key
  1626. * @return mixed
  1627. * @static
  1628. */
  1629. public static function offsetGet($key){
  1630. return \Illuminate\Cache\Repository::offsetGet($key);
  1631. }
  1632. /**
  1633. * Store an item in the cache for the default time.
  1634. *
  1635. * @param string $key
  1636. * @param mixed $value
  1637. * @return void
  1638. * @static
  1639. */
  1640. public static function offsetSet($key, $value){
  1641. \Illuminate\Cache\Repository::offsetSet($key, $value);
  1642. }
  1643. /**
  1644. * Remove an item from the cache.
  1645. *
  1646. * @param string $key
  1647. * @return void
  1648. * @static
  1649. */
  1650. public static function offsetUnset($key){
  1651. \Illuminate\Cache\Repository::offsetUnset($key);
  1652. }
  1653. }
  1654. }
  1655. namespace {
  1656. class ClassLoader extends Illuminate\Support\ClassLoader{
  1657. }
  1658. }
  1659. namespace {
  1660. class Config extends Illuminate\Support\Facades\Config{
  1661. /**
  1662. * Create a new configuration repository.
  1663. *
  1664. * @param \Illuminate\Config\LoaderInterface $loader
  1665. * @param string $environment
  1666. * @return self
  1667. * @static
  1668. */
  1669. public static function __construct($loader, $environment){
  1670. \Illuminate\Config\Repository::__construct($loader, $environment);
  1671. }
  1672. /**
  1673. * Determine if the given configuration value exists.
  1674. *
  1675. * @param string $key
  1676. * @return bool
  1677. * @static
  1678. */
  1679. public static function has($key){
  1680. return \Illuminate\Config\Repository::has($key);
  1681. }
  1682. /**
  1683. * Determine if a configuration group exists.
  1684. *
  1685. * @param string $key
  1686. * @return bool
  1687. * @static
  1688. */
  1689. public static function hasGroup($key){
  1690. return \Illuminate\Config\Repository::hasGroup($key);
  1691. }
  1692. /**
  1693. * Get the specified configuration value.
  1694. *
  1695. * @param string $key
  1696. * @param mixed $default
  1697. * @return mixed
  1698. * @static
  1699. */
  1700. public static function get($key, $default = null){
  1701. return \Illuminate\Config\Repository::get($key, $default);
  1702. }
  1703. /**
  1704. * Set a given configuration value.
  1705. *
  1706. * @param string $key
  1707. * @param mixed $value
  1708. * @return void
  1709. * @static
  1710. */
  1711. public static function set($key, $value){
  1712. \Illuminate\Config\Repository::set($key, $value);
  1713. }
  1714. /**
  1715. * Register a package for cascading configuration.
  1716. *
  1717. * @param string $package
  1718. * @param string $hint
  1719. * @param string $namespace
  1720. * @return void
  1721. * @static
  1722. */
  1723. public static function package($package, $hint, $namespace = null){
  1724. \Illuminate\Config\Repository::package($package, $hint, $namespace);
  1725. }
  1726. /**
  1727. * Register an after load callback for a given namespace.
  1728. *
  1729. * @param string $namespace
  1730. * @param Closure $callback
  1731. * @return void
  1732. * @static
  1733. */
  1734. public static function afterLoading($namespace, $callback){
  1735. \Illuminate\Config\Repository::afterLoading($namespace, $callback);
  1736. }
  1737. /**
  1738. * Add a new namespace to the loader.
  1739. *
  1740. * @param string $namespace
  1741. * @param string $hint
  1742. * @return void
  1743. * @static
  1744. */
  1745. public static function addNamespace($namespace, $hint){
  1746. \Illuminate\Config\Repository::addNamespace($namespace, $hint);
  1747. }
  1748. /**
  1749. * Returns all registered namespaces with the config
  1750. * loader.
  1751. *
  1752. * @return array
  1753. * @static
  1754. */
  1755. public static function getNamespaces(){
  1756. return \Illuminate\Config\Repository::getNamespaces();
  1757. }
  1758. /**
  1759. * Get the loader implementation.
  1760. *
  1761. * @return \Illuminate\Config\LoaderInterface
  1762. * @static
  1763. */
  1764. public static function getLoader(){
  1765. return \Illuminate\Config\Repository::getLoader();
  1766. }
  1767. /**
  1768. * Set the loader implementation.
  1769. *
  1770. * @param \Illuminate\Config\LoaderInterface $loader
  1771. * @return void
  1772. * @static
  1773. */
  1774. public static function setLoader($loader){
  1775. \Illuminate\Config\Repository::setLoader($loader);
  1776. }
  1777. /**
  1778. * Get the current configuration environment.
  1779. *
  1780. * @return string
  1781. * @static
  1782. */
  1783. public static function getEnvironment(){
  1784. return \Illuminate\Config\Repository::getEnvironment();
  1785. }
  1786. /**
  1787. * Get the after load callback array.
  1788. *
  1789. * @return array
  1790. * @static
  1791. */
  1792. public static function getAfterLoadCallbacks(){
  1793. return \Illuminate\Config\Repository::getAfterLoadCallbacks();
  1794. }
  1795. /**
  1796. * Get all of the configuration items.
  1797. *
  1798. * @return array
  1799. * @static
  1800. */
  1801. public static function getItems(){
  1802. return \Illuminate\Config\Repository::getItems();
  1803. }
  1804. /**
  1805. * Determine if the given configuration option exists.
  1806. *
  1807. * @param string $key
  1808. * @return bool
  1809. * @static
  1810. */
  1811. public static function offsetExists($key){
  1812. return \Illuminate\Config\Repository::offsetExists($key);
  1813. }
  1814. /**
  1815. * Get a configuration option.
  1816. *
  1817. * @param string $key
  1818. * @return bool
  1819. * @static
  1820. */
  1821. public static function offsetGet($key){
  1822. return \Illuminate\Config\Repository::offsetGet($key);
  1823. }
  1824. /**
  1825. * Set a configuration option.
  1826. *
  1827. * @param string $key
  1828. * @param string $value
  1829. * @return void
  1830. * @static
  1831. */
  1832. public static function offsetSet($key, $value){
  1833. \Illuminate\Config\Repository::offsetSet($key, $value);
  1834. }
  1835. /**
  1836. * Unset a configuration option.
  1837. *
  1838. * @param string $key
  1839. * @return void
  1840. * @static
  1841. */
  1842. public static function offsetUnset($key){
  1843. \Illuminate\Config\Repository::offsetUnset($key);
  1844. }
  1845. /**
  1846. * Parse a key into namespace, group, and item.
  1847. *
  1848. * @param string $key
  1849. * @return array
  1850. * @static
  1851. */
  1852. public static function parseKey($key){
  1853. return \Illuminate\Support\NamespacedItemResolver::parseKey($key);
  1854. }
  1855. /**
  1856. * Set the parsed value of a key.
  1857. *
  1858. * @param string $key
  1859. * @param array $parsed
  1860. * @return void
  1861. * @static
  1862. */
  1863. public static function setParsedKey($key, $parsed){
  1864. \Illuminate\Support\NamespacedItemResolver::setParsedKey($key, $parsed);
  1865. }
  1866. }
  1867. }
  1868. namespace {
  1869. class Controller extends Illuminate\Routing\Controllers\Controller{
  1870. }
  1871. }
  1872. namespace {
  1873. class Cookie extends Illuminate\Support\Facades\Cookie{
  1874. /**
  1875. * Create a new cookie manager instance.
  1876. *
  1877. * @param \Symfony\Component\HttpFoundation\Request $request
  1878. * @param \Illuminate\Encryption\Encrypter $encrypter
  1879. * @return self
  1880. * @static
  1881. */
  1882. public static function __construct($request, $encrypter){
  1883. \Illuminate\Cookie\CookieJar::__construct($request, $encrypter);
  1884. }
  1885. /**
  1886. * Determine if a cookie exists and is not null.
  1887. *
  1888. * @param string $key
  1889. * @return bool
  1890. * @static
  1891. */
  1892. public static function has($key){
  1893. return \Illuminate\Cookie\CookieJar::has($key);
  1894. }
  1895. /**
  1896. * Get the value of the given cookie.
  1897. *
  1898. * @param string $key
  1899. * @param mixed $default
  1900. * @return mixed
  1901. * @static
  1902. */
  1903. public static function get($key, $default = null){
  1904. return \Illuminate\Cookie\CookieJar::get($key, $default);
  1905. }
  1906. /**
  1907. * Create a new cookie instance.
  1908. *
  1909. * @param string $name
  1910. * @param string $value
  1911. * @param int $minutes
  1912. * @param string $path
  1913. * @param string $domain
  1914. * @param bool $secure
  1915. * @param bool $httpOnly
  1916. * @return \Symfony\Component\HttpFoundation\Cookie
  1917. * @static
  1918. */
  1919. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true){
  1920. return \Illuminate\Cookie\CookieJar::make($name, $value, $minutes, $path, $domain, $secure, $httpOnly);
  1921. }
  1922. /**
  1923. * Create a cookie that lasts "forever" (five years).
  1924. *
  1925. * @param string $name
  1926. * @param string $value
  1927. * @param string $path
  1928. * @param string $domain
  1929. * @param bool $secure
  1930. * @param bool $httpOnly
  1931. * @return \Symfony\Component\HttpFoundation\Cookie
  1932. * @static
  1933. */
  1934. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true){
  1935. return \Illuminate\Cookie\CookieJar::forever($name, $value, $path, $domain, $secure, $httpOnly);
  1936. }
  1937. /**
  1938. * Expire the given cookie.
  1939. *
  1940. * @param string $name
  1941. * @return \Symfony\Component\HttpFoundation\Cookie
  1942. * @static
  1943. */
  1944. public static function forget($name){
  1945. return \Illuminate\Cookie\CookieJar::forget($name);
  1946. }
  1947. /**
  1948. * Set the default path and domain for the jar.
  1949. *
  1950. * @param string $path
  1951. * @param string $domain
  1952. * @return void
  1953. * @static
  1954. */
  1955. public static function setDefaultPathAndDomain($path, $domain){
  1956. \Illuminate\Cookie\CookieJar::setDefaultPathAndDomain($path, $domain);
  1957. }
  1958. /**
  1959. * Get the request instance.
  1960. *
  1961. * @return \Symfony\Component\HttpFoundation\Request
  1962. * @static
  1963. */
  1964. public static function getRequest(){
  1965. return \Illuminate\Cookie\CookieJar::getRequest();
  1966. }
  1967. /**
  1968. * Get the encrypter instance.
  1969. *
  1970. * @return \Illuminate\Encryption\Encrypter
  1971. * @static
  1972. */
  1973. public static function getEncrypter(){
  1974. return \Illuminate\Cookie\CookieJar::getEncrypter();
  1975. }
  1976. }
  1977. }
  1978. namespace {
  1979. class Crypt extends Illuminate\Support\Facades\Crypt{
  1980. /**
  1981. * Create a new encrypter instance.
  1982. *
  1983. * @param string $key
  1984. * @return self
  1985. * @static
  1986. */
  1987. public static function __constr

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