for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @package WPEmerge
* @author Atanas Angelov <[email protected]>
* @copyright 2018 Atanas Angelov
* @license https://www.gnu.org/licenses/gpl-2.0.html GPL-2.0
* @link https://wpemerge.com/
*/
namespace WPEmerge\Responses;
use WPEmerge\Facades\Application;
use WPEmerge\Facades\Response as ResponseFacade;
use WPEmerge\ServiceProviders\ServiceProviderInterface;
* Provide responses dependencies.
*
* @codeCoverageIgnore
class ResponsesServiceProvider implements ServiceProviderInterface {
* {@inheritDoc}
public function register( $container ) {
$container[ WPEMERGE_RESPONSE_SERVICE_KEY ] = function ( $c ) {
return new ResponseService( $c[ WPEMERGE_REQUEST_KEY ] );
};
Application::facade( 'Response', ResponseFacade::class );
facade()
WPEmerge\Facades\Application
__callStatic
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
Application::/** @scrutinizer ignore-call */
facade( 'Response', ResponseFacade::class );
}
public function bootstrap( $container ) {
// Nothing to bootstrap.