mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			552 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			552 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
namespace api\controllers;
 | 
						|
 | 
						|
use Yii;
 | 
						|
use yii\helpers\ArrayHelper;
 | 
						|
 | 
						|
class OptionsController extends Controller {
 | 
						|
 | 
						|
    public function behaviors() {
 | 
						|
        return ArrayHelper::merge(parent::behaviors(), [
 | 
						|
            'authenticator' => [
 | 
						|
                'except' => ['index'],
 | 
						|
            ],
 | 
						|
        ]);
 | 
						|
    }
 | 
						|
 | 
						|
    public function verbs() {
 | 
						|
        return [
 | 
						|
            'index' => ['GET'],
 | 
						|
        ];
 | 
						|
    }
 | 
						|
 | 
						|
    public function actionIndex() {
 | 
						|
        return [
 | 
						|
            'reCaptchaPublicKey' => Yii::$app->reCaptcha->public,
 | 
						|
        ];
 | 
						|
    }
 | 
						|
 | 
						|
}
 |