增加社会化登录
This commit is contained in:
30
extend/socialite/command/SocialiteCommand.php
Normal file
30
extend/socialite/command/SocialiteCommand.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Administrator
|
||||
* Date: 2018/12/29
|
||||
* Time: 16:19
|
||||
*/
|
||||
namespace thinking\socialite\command;
|
||||
|
||||
use think\console\Command;
|
||||
use think\console\Input;
|
||||
use think\console\Output;
|
||||
|
||||
class SocialiteCommand extends Command
|
||||
{
|
||||
protected function configure()
|
||||
{
|
||||
$this->setName('socialite publish')
|
||||
->setDescription('publish socialite config');
|
||||
}
|
||||
|
||||
protected function execute(Input $input, Output $output)
|
||||
{
|
||||
$config = dirname(__DIR__) . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'socialite.php';
|
||||
|
||||
copy($config, app('config_path'));
|
||||
|
||||
$output->writeln('publish successfully, check it' . PHP_EOL);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user