Restrictions.php
1.16 KB
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
/**
* Frontend restrictions setup.
*
* @copyright (c) 2023, Code Atlantic LLC.
* @package ContentControl
*/
namespace ContentControl\Controllers\Frontend;
use ContentControl\Base\Controller;
use ContentControl\Controllers\Frontend\Restrictions\MainQuery;
use ContentControl\Controllers\Frontend\Restrictions\QueryPosts;
use ContentControl\Controllers\Frontend\Restrictions\PostContent;
use ContentControl\Controllers\Frontend\Restrictions\QueryTerms;
use ContentControl\Controllers\Frontend\Restrictions\RestAPI;
defined( 'ABSPATH' ) || exit;
/**
* Class for handling global restrictions.
*
* @package ContentControl
*/
class Restrictions extends Controller {
/**
* Initiate functionality.
*/
public function init() {
$this->container->register_controllers( [
'Frontend\Restrictions\MainQuery' => new MainQuery( $this->container ),
'Frontend\Restrictions\QueryPosts' => new QueryPosts( $this->container ),
'Frontend\Restrictions\QueryTerms' => new QueryTerms( $this->container ),
'Frontend\Restrictions\PostContent' => new PostContent( $this->container ),
'Frontend\Restrictions\RestAPI' => new RestAPI( $this->container ),
] );
}
}