facturation/install.php

13 lines
378 B
PHP
Raw Normal View History

2019-11-02 17:53:27 +01:00
<?php
namespace Garradin;
2021-11-24 23:44:46 +01:00
use Garradin\Entities\Files\File;
2023-04-16 00:51:55 +02:00
use Garradin\Plugin\Facturation\Facture;
2019-11-02 17:53:27 +01:00
$db = DB::getInstance();
2019-11-03 17:51:31 +01:00
$db->import(dirname(__FILE__) . "/data/schema.sql");
2019-11-02 17:53:27 +01:00
2021-11-25 15:11:06 +01:00
$path = __DIR__.'/data/default_sign.png';
2023-04-16 00:51:55 +02:00
$png = (new File)->createAndStore('skel/plugin/facturation','sign.png', $path, null);
$plugin->registerSignal('menu.item', [Facture::class, 'menuItem']);