首页 > 移动平台 > 详细

每天laravel-20160714|AppNamespaceDetectorT

时间:2016-04-14 12:25:43      阅读:376      评论:0      收藏:0      [点我收藏+]
<?php

namespace Illuminate\Console;

use Illuminate\Container\Container;
// use namespace
trait AppNamespaceDetectorTrait
{
    /**
     * Get the application namespace.
     *
     * @return string
     */
    protected function getAppNamespace()
    {
        return Container::getInstance()->getNamespace();// the method
    }// Get the application namespace.
}// App Name Space Detector Trait


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

每天laravel-20160714|AppNamespaceDetectorT

原文:http://jingshanls.blog.51cto.com/3357095/1763661

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!