for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @copyright Copyright (c) Flipbox Digital Limited
* @license https://flipboxfactory.com/software/force/license
* @link https://www.flipboxfactory.com/software/force/
*/
namespace flipbox\hubspot\cp;
use Craft;
use flipbox\force\Force;
use yii\base\Module as BaseModule;
use yii\web\NotFoundHttpException;
* @author Flipbox Factory <[email protected]>
* @since 1.0.0
*
* @property Force $module
class Cp extends BaseModule
{
* @inheritdoc
public function beforeAction($action)
if (!Craft::$app->request->getIsCpRequest()) {
throw new NotFoundHttpException();
}
return parent::beforeAction($action);