Doctrine/ORM/Provider/PermissionProvider.php
private function validateMaster(PermissionConfigInterface $config, $om): void
    {
        if (null === $om) {
            $msg = 'The doctrine object manager is not found for the class "%s"';

            throw new InvalidArgumentException(sprintf($msg, $config->getType()));
        }

        if (null === $config->getMaster()) {
            $msg = 'The permission master association is not configured for the class "%s"';

            throw new InvalidArgumentException(sprintf($msg, $config->getType()));
        }
    }
private function validateMaster(PermissionConfigInterface $config, $om): void
    {
        if (null === $om) {
            $msg = 'The doctrine object manager is not found for the class "%s"';

            throw new InvalidArgumentException(sprintf($msg, $config->getType()));
        }

        if (null === $config->getMaster()) {
            $msg = 'The permission master association is not configured for the class "%s"';

            throw new InvalidArgumentException(sprintf($msg, $config->getType()));
        }
    }
private function validateMaster ( PermissionConfigInterface $ config , $ om ) : void { if ( null === $ om ) { $ msg = 'The doctrine object manager is not found for the class "%s"' ; throw new InvalidArgumentException ( sprintf ( $ msg , $ config -> getType ( ) ) ) ; } if ( null === $ config -> getMaster ( ) ) { $ msg = 'The permission master association is not configured for the class "%s"' ; throw new InvalidArgumentException ( sprintf ( $ msg , $ config -> getType ( ) ) ) ; } }
Validate the master config.

@param PermissionConfigInterface $config The permission config
@param null|ObjectManager        $om     The doctrine object manager
Validate the master config .