Skip to content

Commit

Permalink
upgrade to 5.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ioannis committed Aug 31, 2025
1 parent 25b3e17 commit 5a9ded6
Show file tree
Hide file tree
Showing 3,848 changed files with 173,770 additions and 133,018 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use App\Controller\StandardPluginController;

class ApiSourceEndpointsController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'ApiSourceEndpoints.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use App\Controller\StandardPluginController;

class ApiSourcesController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'ApiSources.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ApiSource extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ApiSourceEndpoint extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class ApiSourceRecord extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use App\Controller\StandardPluginController;

class FileProvisionersController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'FileProvisioners.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
use Cake\Http\Response;

class FileSourcesController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'FileSources.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FileProvisioner extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class FileSource extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
8 changes: 8 additions & 0 deletions app/availableplugins/LdapConnector/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/composer.lock
/composer.phar
/phpunit.xml
/.phpunit.result.cache
/phpunit.phar
/config/Migrations/schema-dump-default.lock
/vendor/
/.idea/
11 changes: 11 additions & 0 deletions app/availableplugins/LdapConnector/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# LdapConnector plugin for CakePHP

## Installation

You can install this plugin into your CakePHP application using [composer](https://getcomposer.org).

The recommended way to install composer packages is:

```
composer require your-name-here/ldap-connector
```
24 changes: 24 additions & 0 deletions app/availableplugins/LdapConnector/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "your-name-here/ldap-connector",
"description": "LdapConnector plugin for CakePHP",
"type": "cakephp-plugin",
"license": "MIT",
"require": {
"php": ">=7.2",
"cakephp/cakephp": "4.6.*"
},
"require-dev": {
"phpunit/phpunit": "^8.5 || ^9.3"
},
"autoload": {
"psr-4": {
"LdapConnector\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"LdapConnector\\Test\\": "tests/",
"Cake\\Test\\": "vendor/cakephp/cakephp/tests/"
}
}
}
30 changes: 30 additions & 0 deletions app/availableplugins/LdapConnector/phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
colors="true"
processIsolation="false"
stopOnFailure="false"
bootstrap="tests/bootstrap.php"
>
<php>
<ini name="memory_limit" value="-1"/>
<ini name="apc.enable_cli" value="1"/>
</php>

<!-- Add any additional test suites you want to run here -->
<testsuites>
<testsuite name="LdapConnector">
<directory>tests/TestCase/</directory>
</testsuite>
</testsuites>

<!-- Setup fixture extension -->
<extensions>
<extension class="Cake\TestSuite\Fixture\PHPUnitExtension" />
</extensions>

<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
</phpunit>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php
declare(strict_types=1);

namespace LdapConnector\Controller;

use App\Controller\AppController as BaseController;

class AppController extends BaseController
{
}
93 changes: 93 additions & 0 deletions app/availableplugins/LdapConnector/src/LdapConnectorPlugin.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?php
declare(strict_types=1);

namespace LdapConnector;

use Cake\Console\CommandCollection;
use Cake\Core\BasePlugin;
use Cake\Core\ContainerInterface;
use Cake\Core\PluginApplicationInterface;
use Cake\Http\MiddlewareQueue;
use Cake\Routing\RouteBuilder;

/**
* Plugin for LdapConnector
*/
class LdapConnectorPlugin extends BasePlugin
{
/**
* Load all the plugin configuration and bootstrap logic.
*
* The host application is provided as an argument. This allows you to load
* additional plugin dependencies, or attach events.
*
* @param \Cake\Core\PluginApplicationInterface $app The host application
* @return void
*/
public function bootstrap(PluginApplicationInterface $app): void
{
}

/**
* Add routes for the plugin.
*
* If your plugin has many routes and you would like to isolate them into a separate file,
* you can create `$plugin/config/routes.php` and delete this method.
*
* @param \Cake\Routing\RouteBuilder $routes The route builder to update.
* @return void
*/
public function routes(RouteBuilder $routes): void
{
$routes->plugin(
'LdapConnector',
['path' => '/ldap-connector'],
function (RouteBuilder $builder) {
// Add custom routes here

$builder->fallbacks();
}
);
parent::routes($routes);
}

/**
* Add middleware for the plugin.
*
* @param \Cake\Http\MiddlewareQueue $middlewareQueue The middleware queue to update.
* @return \Cake\Http\MiddlewareQueue
*/
public function middleware(MiddlewareQueue $middlewareQueue): MiddlewareQueue
{
// Add your middlewares here

return $middlewareQueue;
}

/**
* Add commands for the plugin.
*
* @param \Cake\Console\CommandCollection $commands The command collection to update.
* @return \Cake\Console\CommandCollection
*/
public function console(CommandCollection $commands): CommandCollection
{
// Add your commands here

$commands = parent::console($commands);

return $commands;
}

/**
* Register application container services.
*
* @param \Cake\Core\ContainerInterface $container The Container to update.
* @return void
* @link https://book.cakephp.org/4/en/development/dependency-injection.html#dependency-injection
*/
public function services(ContainerInterface $container): void
{
// Add your services here
}
}
55 changes: 55 additions & 0 deletions app/availableplugins/LdapConnector/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?php
declare(strict_types=1);

/**
* Test suite bootstrap for LdapConnector.
*
* This function is used to find the location of CakePHP whether CakePHP
* has been installed as a dependency of the plugin, or the plugin is itself
* installed as a dependency of an application.
*/
$findRoot = function ($root) {
do {
$lastRoot = $root;
$root = dirname($root);
if (is_dir($root . '/vendor/cakephp/cakephp')) {
return $root;
}
} while ($root !== $lastRoot);

throw new Exception('Cannot find the root of the application, unable to run tests');
};
$root = $findRoot(__FILE__);
unset($findRoot);

chdir($root);

require_once $root . '/vendor/autoload.php';

/**
* Define fallback values for required constants and configuration.
* To customize constants and configuration remove this require
* and define the data required by your plugin here.
*/
require_once $root . '/vendor/cakephp/cakephp/tests/bootstrap.php';

if (file_exists($root . '/config/bootstrap.php')) {
require $root . '/config/bootstrap.php';

return;
}

/**
* Load schema from a SQL dump file.
*
* If your plugin does not use database fixtures you can
* safely delete this.
*
* If you want to support multiple databases, consider
* using migrations to provide schema for your plugin,
* and using \Migrations\TestSuite\Migrator to load schema.
*/
use Cake\TestSuite\Fixture\SchemaLoader;

// Load a schema dump file.
(new SchemaLoader())->loadSqlFiles('tests/schema.sql', 'test');
1 change: 1 addition & 0 deletions app/availableplugins/LdapConnector/tests/schema.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- Test database schema for LdapConnector
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use App\Controller\StandardPluginController;

class IdentifierMappersController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'IdentifierMappers.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use App\Controller\StandardPluginController;

class LoginIdentifierTypesController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'LoginIdentifierTypes.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use App\Controller\StandardPluginController;

class PersonRoleMappersController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'PersonRoleMappers.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
use App\Controller\StandardPluginController;

class PersonRoleMappingsController extends StandardPluginController {
public $paginate = [
public array $paginate = [
'order' => [
'PersonRoleMappings.id' => 'asc'
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class IdentifierMapper extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LoginIdentifierType extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class PersonRoleMapper extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PersonRoleMapping extends Entity {
*
* @var array<string, bool>
*/
protected $_accessible = [
protected array $_accessible = [
'*' => true,
'id' => false,
'slug' => false,
Expand Down
Loading

0 comments on commit 5a9ded6

Please sign in to comment.