Skip to content

Commit

Permalink
Feature: Emergency Alerts & Messages (Common Alert Protocol) (#2728)
Browse files Browse the repository at this point in the history
  • Loading branch information
nadzpogi authored Oct 2, 2024
1 parent afc4470 commit 258160e
Show file tree
Hide file tree
Showing 12 changed files with 1,113 additions and 2 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@
"selective/samesite-cookie": "0.3.0",
"nesbot/carbon": "2.66.*",
"jmikola/geojson": "^1.0",
"symfony/yaml": "5.4.*"
"symfony/yaml": "5.4.*",
"mjaschen/phpgeo": "^5.0"
},
"require-dev": {
"phpunit/phpunit": "10.0.*",
Expand Down
85 changes: 84 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions db/migrations/20240903142530_add_cap_connector_migration.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php
/*
* Copyright (C) 2023 Xibo Signage Ltd
*
* Xibo - Digital Signage - http://www.xibo.org.uk
*
* This file is part of Xibo.
*
* Xibo is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* Xibo is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with Xibo. If not, see <http://www.gnu.org/licenses/>.
*/

use Phinx\Migration\AbstractMigration;

/**
* Add a new connector (Common Alert Protocol - CAP) to connectors table
* @phpcs:disable PSR1.Classes.ClassDeclaration.MissingNamespace
*/
class AddCapConnectorMigration extends AbstractMigration
{
public function change()
{
$this->table('connectors')
->insert([
'className' => '\\Xibo\\Connector\\CapConnector',
'isEnabled' => 1,
'isVisible' => 1
])
->save();
}
}
Loading

0 comments on commit 258160e

Please sign in to comment.