facturation/install.php

13 lines
372 B
PHP
Raw Normal View History

2019-11-02 17:53:27 +01:00
<?php
2023-07-21 23:28:54 +02:00
namespace Paheko;
use Paheko\Entities\Files\File;
use Paheko\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']);