<?php
use Chubbyphp\Validation\ServiceProvider\ValidationServiceProvider;
use Chubbyphp\Validation\ValidatorContextInterface;
use Pimple\Container;
$container = new Container();
$container->register(new ValidationServiceProvider);
$object = ...;
/** @var ValidatorContextInterface $context */
$context = ...;
$errors = $container['validator']
->validate(
$object,
$context,
'path'
);
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.