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

src/Responses/ResponsesServiceProvider.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\Responses;
11
12
use WPEmerge\Facades\Application;
13
use WPEmerge\Facades\Response as ResponseFacade;
14
use WPEmerge\ServiceProviders\ServiceProviderInterface;
15
16
/**
17
 * Provide responses dependencies.
18
 *
19
 * @codeCoverageIgnore
20
 */
21
class ResponsesServiceProvider implements ServiceProviderInterface {
22
	/**
23
	 * {@inheritDoc}
24
	 */
25
	public function register( $container ) {
26
		$container[ WPEMERGE_RESPONSE_SERVICE_KEY ] = function ( $c ) {
27
			return new ResponseService( $c[ WPEMERGE_REQUEST_KEY ] );
28
		};
29
30
		Application::facade( 'Response', ResponseFacade::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

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