PHP code example of adamtyn / at-lumen

1. Go to this page and download the library: Download adamtyn/at-lumen library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

adamtyn / at-lumen example snippets




class Kernel extends ConsoleKernel
{
    protected function getCommands()
    {
        if (config('app.env') !== 'production') {
            $this->commands[] = \AdamTyn\Lumen\Artisan\KeyGenerateCommand::class;
        }

        $this->commands[] = \AdamTyn\Lumen\Artisan\StorageLinkCommand::class;
        $this->commands[] = \AdamTyn\Lumen\Artisan\ConfigCacheCommand::class;
        $this->commands[] = \AdamTyn\Lumen\Artisan\ConfigClearCommand::class;
        $this->commands[] = \AdamTyn\Lumen\Artisan\UpCommand::class;
        $this->commands[] = \AdamTyn\Lumen\Artisan\DownCommand::class;

        return parent::getCommands();
    }
}



use Laravel\Lumen\Application as Lumen;

final class Core extends Lumen
{
    public function configure($name)
    {
        if (isset($this->loadedConfigurations[$name])) {
            return;
        }

        $this->loadedConfigurations[$name] = $this->cachedConfig;

        if (!$this->cachedConfig) {
            $this->loadedConfigurations[$name] = true;

            $path = $this->getConfigurationPath($name);

            if ($path) {
                $this->make('config')->set($name, 



use Laravel\Lumen\Application as Lumen;

final class Core extends Lumen
{
    public function __construct($basePath = null)
    {
        // 加载配置缓存文件
        $this->loadCachedConfig();

        parent::__construct($basePath);
    }
}