Failed Conditions
Branch refactor/kernels (cc9370)
by Atanas
02:23
created

src/Csrf/CsrfServiceProvider.php (1 issue)

Labels
Severity
1
<?php
2
/**
3
 * @package   WPEmerge
4
 * @author    Atanas Angelov <[email protected]>
5
 * @copyright 2018 Atanas Angelov
6
 * @license   https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
7
 * @link      https://wpemerge.com/
8
 */
9
10
namespace WPEmerge\Csrf;
11
12
use WPEmerge\Facades\Application;
13
use WPEmerge\ServiceProviders\ServiceProviderInterface;
14
15
/**
16
 * Provide CSRF dependencies.
17
 *
18
 * @codeCoverageIgnore
19
 */
20
class CsrfServiceProvider implements ServiceProviderInterface {
21
	/**
22
	 * {@inheritDoc}
23
	 */
24
	public function register( $container ) {
25
		$container[ WPEMERGE_CSRF_KEY ] = function () {
26
			return new Csrf();
27
		};
28
29
		Application::facade( 'Csrf', \WPEmerge\Facades\Csrf::class );
0 ignored issues
show
The method facade() does not exist on WPEmerge\Facades\Application. Since you implemented __callStatic, consider adding a @method annotation. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

29
		Application::/** @scrutinizer ignore-call */ 
30
               facade( 'Csrf', \WPEmerge\Facades\Csrf::class );
Loading history...
30
	}
31
32
	/**
33
	 * {@inheritDoc}
34
	 */
35
	public function bootstrap( $container ) {
36
		// Nothing to bootstrap.
37
	}
38
}
39