-
Notifications
You must be signed in to change notification settings - Fork 2
/
firebase-sso.php
39 lines (31 loc) · 1.04 KB
/
firebase-sso.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
/**
* Plugin Name: Single Sign-On with Firebase
* Plugin URI: https://github.com/itumulak/firebase-sso
* Description: Utilize Firebase to sign-in to your website.
* Version: 1.1.0
* Author: Ian Tumulak
* Author URI: https://www.linkedin.com/in/itumulak
* License: GPLv2 or later
* Text Domain: firebase-sso
*
* @package firebase-sso
*/
use Itumulak\WpSsoFirebase\Controller\Admin_Controller;
use Itumulak\WpSsoFirebase\Controller\Gutenburg_Controller;
use Itumulak\WpSsoFirebase\Controller\UserProfileWP_Controller;
use Itumulak\WpSsoFirebase\Controller\Frontend_Controller;
if ( ! defined( 'ABSPATH' ) ) {
exit;
} // Exit if accessed directly
require 'vendor/autoload.php';
define( 'FIREBASE_SSO_DIR', plugin_dir_path( __FILE__ ) );
define( 'FIREBASE_SSO_URL', plugin_dir_url( __FILE__ ) );
$admin = new Admin_Controller();
$admin->init();
$gutenburg = new Gutenburg_Controller();
$gutenburg->init();
$admin_user_profile = new UserProfileWP_Controller();
$admin_user_profile->init();
$frontend = new Frontend_Controller();
$frontend->init();