Bolt\Controller\Backend\Extend::prohibitsPackage PHP Метод

prohibitsPackage() публичный Метод

Find "prohibits" dependencies.
public prohibitsPackage ( Request $request ) : Symfony\Component\HttpFoundation\JsonResponse
$request Symfony\Component\HttpFoundation\Request
Результат Symfony\Component\HttpFoundation\JsonResponse
    public function prohibitsPackage(Request $request)
    {
        $package = $request->get('package');
        $constraint = $request->get('constraint', '*');
        try {
            $response = $this->manager()->prohibitsPackage($package, $constraint);
        } catch (\Exception $e) {
            return $this->getJsonException($e);
        }
        return $this->json($response);
    }