码迷,mamicode.com
首页 > 其他好文 > 详细

每天laravel-20160724|abstract Genaerator-1

时间:2016-04-25 09:20:53      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:laravel

namespace Illuminate\Console;

use Illuminate\Support\Str;
use Illuminate\Filesystem\Filesystem;
use Symfony\Component\Console\Input\InputArgument;
// use namespace
abstract class GeneratorCommand extends Command// a better class that is G
{
    /**
     * The filesystem instance.
     *
     * @var \Illuminate\Filesystem\Filesystem
     */
    protected $files;// The file system instance

    /**
     * The type of class being generated.
     *
     * @var string
     */
    protected $type;// The type of class being generated.

    /**
     * Create a new controller creator command instance.
     *
     * @param  \Illuminate\Filesystem\Filesystem  $files
     * @return void
     */
    public function __construct(Filesystem $files)
    {
        parent::__construct();

        $this->files = $files;
    }// Create a new controller creator command instance.


本文出自 “专注php” 博客,请务必保留此出处http://jingshanls.blog.51cto.com/3357095/1767382

每天laravel-20160724|abstract Genaerator-1

标签:laravel

原文地址:http://jingshanls.blog.51cto.com/3357095/1767382

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!