PHP code example of ac / kalinka-bundle
1. Go to this page and download the library: Download ac/kalinka-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ac / kalinka-bundle example snippets
$document = //...get some document instance, however you do that
$authorizer = $this->container->get('kalinka.authorizer');
if (!$authorizer->can('edit', 'document', $someDocument)) {
throw new Exception('Computer says no. :(');
}