Passed
Push — master ( e98f88...fb0f34 )
by Andrea
07:45
created

Fifree2installCommand::execute()   A

Complexity

Conditions 4
Paths 4

Size

Total Lines 44
Code Lines 28

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 21
CRAP Score 4.1755

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 28
c 1
b 0
f 0
dl 0
loc 44
ccs 21
cts 27
cp 0.7778
rs 9.472
cc 4
nc 4
nop 2
crap 4.1755
1
<?php
2
3
namespace Fi\CoreBundle\Command;
4
5
use DateTime;
6
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
7
use Symfony\Component\Console\Input\ArrayInput;
8
use Symfony\Component\Console\Input\InputArgument;
9
use Symfony\Component\Console\Input\InputInterface;
10
use Symfony\Component\Console\Output\OutputInterface;
11
use Symfony\Component\Filesystem\Filesystem;
12
13
class Fifree2installCommand extends ContainerAwareCommand
14
{
15
16
    protected $fixtureFile;
17
18 6
    protected function configure()
19
    {
20
        $this
21 6
                ->setName('fifree2:install')
22 6
                ->setDescription('Installazione ambiente fifree')
23 6
                ->setHelp('Crea il database, un utente amministratore e i dati di default')
24 6
                ->addArgument('admin', InputArgument::REQUIRED, 'Username per amministratore')
25 6
                ->addArgument('adminpass', InputArgument::REQUIRED, 'Password per amministratore')
26 6
                ->addArgument('adminemail', InputArgument::REQUIRED, 'Email per amministratore')
27
        ;
28 6
    }
29
30 1
    protected function execute(InputInterface $input, OutputInterface $output)
31
    {
32 1
        $admin = $input->getArgument('admin');
33 1
        $adminpass = $input->getArgument('adminpass');
34 1
        $adminemail = $input->getArgument('adminemail');
35 1
        $this->fixtureFile = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'fixtures.yml';
36
37 1
        if (!$admin) {
38
            echo "Inserire il nome utente dell'amministratore";
39
40
            return 1;
41
        }
42 1
        if (!$adminpass) {
43
            echo "Inserire la password per dell'amministratore";
44
45
            return 1;
46
        }
47 1
        if (!$adminemail) {
48
            echo "Inserire la mail dell'amministratore";
49
50
            return 1;
51
        }
52
53 1
        $commanddb = $this->getApplication()->find('fifree2:createdatabase');
54 1
        $argumentsdb = array('command' => 'fifree2:createdatabase');
55 1
        $inputc = new ArrayInput($argumentsdb);
56 1
        $commanddb->run($inputc, $output);
57
58 1
        $this->generateDefaultData($admin, $adminemail);
59
60 1
        $commanddata = $this->getApplication()->find('fifree2:configuratorimport');
61
        $argumentsdata = array(
62 1
            'command' => 'fifree2:configuratorimport',
63
            array("--truncatetables" => true)
64
        );
65 1
        $inputd = new ArrayInput($argumentsdata);
66 1
        $commanddata->run($inputd, $output);
67
68 1
        $fs = new Filesystem();
69 1
        $fs->remove($this->fixtureFile);
70
71 1
        $userManipulator = $this->getContainer()->get('fifree.fos_user.util.user_manipulator');
72
73 1
        $userManipulator->changePassword($admin, $adminpass);
74 1
    }
75
76
    /**
77
     * This will suppress UnusedLocalVariable
78
     * warnings in this method
79
     *
80
     * @SuppressWarnings(PHPMD.ExcessiveMethodLength)
81
     */
82 1
    private function generateDefaultData($admin, $adminemail)
83
    {
84 1
        $todaydt = new DateTime();
85 1
        $today = $todaydt->format("Y-m-d") . "T00:00:00+01:00";
86
        
87
        $defaultData = <<<EOF
88
Fi\CoreBundle\Entity\Ruoli:
89
    -
90
        id: 1
91
        ruolo: 'Super Admin'
92
        paginainiziale: /adminpanel
93
        is_superadmin: true
94
        is_admin: true
95
        is_user: false
96
    -
97
        id: 2
98
        ruolo: Amministratore
99
        paginainiziale: /adminpanel
100
        is_superadmin: false
101
        is_admin: true
102
        is_user: false
103
    -
104
        id: 3
105
        ruolo: Utente
106
        paginainiziale: /ffprincipale
107
        is_superadmin: false
108
        is_admin: false
109
        is_user: true
110
    -
111
        id: 4
112
        ruolo: Ffprincipale
113
        paginainiziale: /ffprincipale
114
        is_superadmin: false
115
        is_admin: false
116
        is_user: true
117
    -
118
        id: 5
119
        ruolo: Ffsecondaria
120
        paginainiziale: /ffsecondaria
121
        is_superadmin: false
122
        is_admin: false
123
        is_user: true
124
Fi\CoreBundle\Entity\Operatori:
125
    -
126 1
        username: $admin
127 1
        usernameCanonical: $admin
128 1
        email: $adminemail
129 1
        emailCanonical: $adminemail
130
        enabled: true
131
        salt: null
132 1
        password: $admin
133
        lastLogin: null
134
        confirmationToken: null
135
        passwordRequestedAt: null
136
        roles:
137
            - ROLE_SUPER_ADMIN
138
        id: 1
139 1
        operatore: $admin
140
        ruoli_id: 1
141
    -
142
        username: ffprincipalec
143
        usernameCanonical: ffprincipalec
144
        email: [email protected]
145
        emailCanonical: [email protected]
146
        enabled: true
147
        salt: TsslJJBJVZRzYSN1XrR97bTj33MEM0hf5b0xaFgbtF8
148
        password: q3EgysATetLjBY1EEcLJX54wwWv6z/Vv9ftTj+wbEg8E+YfQTHHoAoII0ig40fThp23BdyZ88iOelJ65EYmpwA==
149
        lastLogin: null
150
        confirmationToken: null
151
        passwordRequestedAt: null
152
        roles: {  }
153
        id: 2
154
        operatore: null
155
        ruoli_id: null
156
    -
157
        username: ffprincipaler
158
        usernameCanonical: ffprincipaler
159
        email: [email protected]
160
        emailCanonical: [email protected]
161
        enabled: true
162
        salt: FYjiqs9fg2Rye/rQW2kZOVugzSRYvDEvOeXaRL1NH.Y
163
        password: KZaxi0Vsje3TWwa5/5P/oHy56N0ZPj/IqdeAd8DPuMPFgjI89HcoWrF1PQCEvdCL0p3xuIA+R9zoxC6aw/q1NA==
164
        lastLogin: null
165
        confirmationToken: null
166
        passwordRequestedAt: null
167
        roles: {  }
168
        id: 3
169
        operatore: null
170
        ruoli_id: null
171
    -
172
        username: ffprincipaleu
173
        usernameCanonical: ffprincipaleu
174
        email: [email protected]
175
        emailCanonical: [email protected]
176
        enabled: true
177
        salt: P4NejU4s9XNhkisXm/TX1rFO3Yx6DbO28H8c.kuphq0
178
        password: M6Q7MArq/XbgCRueH93DaMduzTqhTQxqNxD5syKyXsj9tjerQa2ZzvX8Wgg9JE0pqnv1vJVVFFUmfjguSL0NQg==
179
        lastLogin: null
180
        confirmationToken: null
181
        passwordRequestedAt: null
182
        roles: {  }
183
        id: 4
184
        operatore: null
185
        ruoli_id: null
186
    -
187
        username: ffprincipaled
188
        usernameCanonical: ffprincipaled
189
        email: [email protected]
190
        emailCanonical: [email protected]
191
        enabled: true
192
        salt: pE01F9zH7sYq3PqvT4dwykSA.3ax0E7ERZSPxse6/Mw
193
        password: Pj3I9hXVrvx57CKoUyBxzvjLbuZCAthfXsN6qoz+8FhTN/a0iwkfLikd2DPAy2ePCb3Dv2ukRIxoJSRL/fiAnA==
194
        lastLogin: null
195
        confirmationToken: null
196
        passwordRequestedAt: null
197
        roles: {  }
198
        id: 5
199
        operatore: null
200
        ruoli_id: null
201
    -
202
        username: ffsecondariac
203
        usernameCanonical: ffsecondariac
204
        email: [email protected]
205
        emailCanonical: [email protected]
206
        enabled: true
207
        salt: rCmWpPixVyq0.ytBt/Uk7juA.KS6JAscAn3ZhNMscM8
208
        password: sPtyn93cPWF60mKTI5FAoKppJWlX8KGiJKs7DbyxNtA8MKiTl9C4HG9UsNsNdgMexg5/EF5eLFLa4wUqOha37g==
209
        lastLogin: null
210
        confirmationToken: null
211
        passwordRequestedAt: null
212
        roles: {  }
213
        id: 6
214
        operatore: null
215
        ruoli_id: null
216
    -
217
        username: ffsecondariar
218
        usernameCanonical: ffsecondariar
219
        email: [email protected]
220
        emailCanonical: [email protected]
221
        enabled: true
222
        salt: nFDM1Za4bdC4UQqM8trUWT8T4lVi3N1k4F2.651zWTM
223
        password: BJ2+8wWV3MKaDN6t3bHQiAn1C3BNqiIDMCstMPinO1qOwBKNcumBdbMdvRC86Az/c/5srb8wpwCHdZZ7bdTbwQ==
224
        lastLogin: null
225
        confirmationToken: null
226
        passwordRequestedAt: null
227
        roles: {  }
228
        id: 7
229
        operatore: null
230
        ruoli_id: null
231
    -
232
        username: ffsecondariau
233
        usernameCanonical: ffsecondariau
234
        email: [email protected]
235
        emailCanonical: [email protected]
236
        enabled: true
237
        salt: t24V9m5oaJVEHy6bgYmK8R.dZ.WrCrUoj6dR7XUY8H4
238
        password: SeFRn5cJiRZgWU5Hj623v+4FGF5PI0J3cuNb62EhIrazudvMQCGrvdcZutKNZdhdCM7In8fiTE8DjPUJqg64DQ==
239
        lastLogin: null
240
        confirmationToken: null
241
        passwordRequestedAt: null
242
        roles: {  }
243
        id: 8
244
        operatore: null
245
        ruoli_id: null
246
    -
247
        username: ffsecondariad
248
        usernameCanonical: ffsecondariad
249
        email: [email protected]
250
        emailCanonical: [email protected]
251
        enabled: true
252
        salt: 6r2f.2sU8C3FMWvAevOnXA1haSXFywcb2DZhICZE9dI
253
        password: Csop95dNeEv8B6PzVMlzFyZfkLNyU8KaljQlVrWDUtbmNbUPWEFyaFRVOCKVVdlQK+yi+TNDI7sgzrmuwhtg4w==
254
        lastLogin: null
255
        confirmationToken: null
256
        passwordRequestedAt: null
257
        roles: {  }
258
        id: 9
259
        operatore: null
260
        ruoli_id: null
261
    -
262
        username: ffprincipale
263
        usernameCanonical: ffprincipale
264
        email: [email protected]
265
        emailCanonical: [email protected]
266
        enabled: true
267
        salt: .5AIBmH.CKC2oSXdZOFO/ccQew3MP3LVqpFGpvRmrQk
268
        password: qhutSK2csuIn0UluYXOT3DKLxwMMuddfuEjGaa6iMDnVLjntSPccJTmmCa1wcikzQ8mAAwrhOUAcnmatYhg33g==
269
        lastLogin: null
270
        confirmationToken: null
271
        passwordRequestedAt: null
272
        roles: {  }
273
        id: 10
274
        operatore: null
275
        ruoli_id: 4
276
    -
277
        username: ffsecondaria
278
        usernameCanonical: ffsecondaria
279
        email: [email protected]
280
        emailCanonical: [email protected]
281
        enabled: true
282
        salt: Ol1WIAFWsAw7DewtYdyFM86T7fWYOYslvm.7C7rwV5c
283
        password: s/jZyrl4SCACNKiYVq9ie3l4b2Q/AvAhy7eiHPrLxcfeAa/Mn2MvlFkEppQC/JHINIICKjXhNhdZk0PO5vS7IA==
284
        lastLogin: null
285
        confirmationToken: null
286
        passwordRequestedAt: null
287
        roles: {  }
288
        id: 11
289
        operatore: null
290
        ruoli_id: 5
291
    -
292
        username: usernoroles
293
        usernameCanonical: usernoroles
294
        email: [email protected]
295
        emailCanonical: [email protected]
296
        enabled: true
297
        salt: nczIukArDyAEH6vvjehM973qvfDjE.WGzkP24umtpfE
298
        password: Ce0FJ16dd5HfwJ8CbzocZB3UDZWzwvD9l/A3kyJJR1oHoisxGjF06qR4sSj/Nsk8J6aCI1GtgmHbJfeF7TS93w==
299
        lastLogin: null
300
        confirmationToken: null
301
        passwordRequestedAt: null
302
        roles: {  }
303
        id: 12
304
        operatore: null
305
        ruoli_id: null
306
Fi\CoreBundle\Entity\Permessi:
307
    -
308
        id: 1
309
        modulo: MenuApplicazione
310
        crud: crud
311
        operatori_id: null
312
        ruoli_id: 1
313
    -
314
        id: 2
315
        modulo: OpzioniTabella
316
        crud: crud
317
        operatori_id: null
318
        ruoli_id: 1
319
    -
320
        id: 3
321
        modulo: Tabelle
322
        crud: crud
323
        operatori_id: null
324
        ruoli_id: 1
325
    -
326
        id: 4
327
        modulo: Permessi
328
        crud: crud
329
        operatori_id: null
330
        ruoli_id: 1
331
    -
332
        id: 5
333
        modulo: Operatori
334
        crud: cru
335
        operatori_id: null
336
        ruoli_id: 1
337
    -
338
        id: 6
339
        modulo: Ruoli
340
        crud: crud
341
        operatori_id: null
342
        ruoli_id: 1
343
    -
344
        id: 7
345
        modulo: Ffprincipale
346
        crud: crud
347
        operatori_id: null
348
        ruoli_id: 1
349
    -
350
        id: 8
351
        modulo: Ffsecondaria
352
        crud: crud
353
        operatori_id: null
354
        ruoli_id: 1
355
    -
356
        id: 9
357
        modulo: Ffsecondaria
358
        crud: crud
359
        operatori_id: null
360
        ruoli_id: 5
361
    -
362
        id: 10
363
        modulo: Ffprincipale
364
        crud: crud
365
        operatori_id: null
366
        ruoli_id: 4
367
    -
368
        id: 11
369
        modulo: Ffprincipale
370
        crud: c
371
        operatori_id: 2
372
        ruoli_id: null
373
    -
374
        id: 12
375
        modulo: Ffprincipale
376
        crud: r
377
        operatori_id: 3
378
        ruoli_id: null
379
    -
380
        id: 13
381
        modulo: Ffprincipale
382
        crud: u
383
        operatori_id: 4
384
        ruoli_id: null
385
    -
386
        id: 14
387
        modulo: Ffprincipale
388
        crud: d
389
        operatori_id: 5
390
        ruoli_id: null
391
    -
392
        id: 15
393
        modulo: Ffsecondaria
394
        crud: c
395
        operatori_id: 6
396
        ruoli_id: null
397
    -
398
        id: 16
399
        modulo: Ffsecondaria
400
        crud: r
401
        operatori_id: 7
402
        ruoli_id: null
403
    -
404
        id: 17
405
        modulo: Ffsecondaria
406
        crud: u
407
        operatori_id: 8
408
        ruoli_id: null
409
    -
410
        id: 18
411
        modulo: Ffsecondaria
412
        crud: d
413
        operatori_id: 9
414
        ruoli_id: null
415
Fi\CoreBundle\Entity\Tabelle:
416
  -
417
    id: 1
418
    nometabella: '*'
419
    nomecampo: null
420
    mostraindex: null
421
    ordineindex: null
422
    larghezzaindex: null
423
    etichettaindex: null
424
    mostrastampa: null
425
    ordinestampa: null
426
    larghezzastampa: null
427
    etichettastampa: null
428
    operatori_id: null
429
    registrastorico: null
430
  -
431
    id: 2
432
    nometabella: Ffsecondaria
433
    nomecampo: ffprincipale
434
    mostraindex: true
435
    ordineindex: null
436
    larghezzaindex: null
437
    etichettaindex: null
438
    mostrastampa: true
439
    ordinestampa: null
440
    larghezzastampa: null
441
    etichettastampa: null
442
    operatori_id: null
443
    registrastorico: true
444
  -
445
    id: 3
446
    nometabella: Ffsecondaria
447
    nomecampo: descsec
448
    mostraindex: true
449
    ordineindex: null
450
    larghezzaindex: null
451
    etichettaindex: null
452
    mostrastampa: true
453
    ordinestampa: null
454
    larghezzastampa: null
455
    etichettastampa: null
456
    operatori_id: null
457
    registrastorico: true
458
  -
459
    id: 4
460
    nometabella: Ffprincipale
461
    nomecampo: null
462
    mostraindex: null
463
    ordineindex: null
464
    larghezzaindex: null
465
    etichettaindex: null
466
    mostrastampa: null
467
    ordinestampa: null
468
    larghezzastampa: null
469
    etichettastampa: null
470
    operatori_id: null
471
    registrastorico: null
472
Fi\CoreBundle\Entity\OpzioniTabella:
473
  -
474
    id: 1
475
    tabelle_id: 1
476
    descrizione: null
477
    parametro: titolo
478
    valore: 'Elenco dati per %tabella%'
479
  -
480
    id: 2
481
    tabelle_id: 1
482
    descrizione: 'Altezza Griglia'
483
    parametro: altezzagriglia
484
    valore: '400'
485
  -
486
    id: 3
487
    tabelle_id: 1
488
    descrizione: 'Esegue filtri con invio in testata griglia'
489
    parametro: filterToolbar_searchOnEnter
490
    valore: true
491
  -
492
    id: 4
493
    tabelle_id: 1
494
    descrizione: 'Aggiunge filtri di default in testata griglia'
495
    parametro: filterToolbar_searchOperators
496
    valore: true
497
  -
498
    id: 5
499
    tabelle_id: 4
500
    descrizione: 'Allarga griglia Ffprincipale'
501
    parametro: larghezzagriglia
502
    valore: 800
503
  -
504
    id: 6
505
    tabelle_id: 4
506
    descrizione: 'Multisearch Ffprincipale'
507
    parametro: multisearch
508
    valore: true
509
  -
510
    id: 7
511
    tabelle_id: 4
512
    descrizione: 'Showconfig Ffprincipale'
513
    parametro: showconfig
514
    valore: true
515
  -
516
    id: 8
517
    tabelle_id: 4
518
    descrizione: 'Show excel Ffprincipale'
519
    parametro: showexcel
520
    valore: true
521
  -
522
    id: 9
523
    tabelle_id: 4
524
    descrizione: 'Overlayopen Ffprincipale'
525
    parametro: overlayopen
526
    valore: true
527
Fi\CoreBundle\Entity\Ffprincipale:
528
  -
529
    id: 1
530
    descrizione: 'Descrizione primo record'
531
  -
532
    id: 2
533
    descrizione: 'Descrizione secondo record'
534
Fi\CoreBundle\Entity\Ffsecondaria:
535
  -
536
    id: 1
537
    descsec: '1° secondaria legato al 1° record PRINCIPALE'
538
    ffprincipale_id: 1
539 1
    data: $today
540
    intero: 10
541
    giornodellasettimana: 1
542
    importo: 12.34
543
    nota: 'Super Nota ffsecondaria'
544
    attivo: true
545
  -
546
    id: 2
547
    descsec: '2° SECONDARIA legato al 1° record principale'
548
    ffprincipale_id: 1
549 1
    data: $today
550
    intero: 1
551
    giornodellasettimana: 2
552
    importo: 1.23
553
    nota: 'Nota ffsecondaria'
554
    attivo: true
555
  -
556
    id: 3
557
    descsec: '3° secondaria legato al 1° record principale'
558
    ffprincipale_id: 1
559 1
    data: $today
560
    intero: 10
561
    giornodellasettimana: 3
562
    importo: 11.34
563
    nota: 'Nota 3° ffsecondaria'
564
    attivo: false
565
  -
566
    id: 4
567
    descsec: '4° Secondaria legato al 1° record Principale'
568
    ffprincipale_id: 1
569 1
    data: $today
570
    giornodellasettimana: 4
571
    intero: 101
572
    importo: 101.34
573
    nota: 'Nota 4° ffsecondaria'
574
    attivo: true
575
  -
576
    id: 5
577
    descsec: '5° secondaria legato al 1° record principale'
578
    ffprincipale_id: 1
579 1
    data: $today
580
    giornodellasettimana: 5
581
    intero: 101
582
    importo: 101.34
583
    nota: 'Nota 4° ffsecondaria'
584
    attivo: true
585
  -
586
    id: 6
587
    descsec: '6° secondaria legato al 2° record principale'
588
    ffprincipale_id: 2
589 1
    data: $today
590
    intero: 10006
591
    giornodellasettimana: 6
592
    importo: 10006.12
593
    nota: 'Nota altra ffsecondaria'
594
    attivo: true
595
  -
596
    id: 7
597
    descsec: '7° secondaria legato al 2° record principale'
598
    ffprincipale_id: 2
599 1
    data: $today
600
    intero: 10007
601
    giornodellasettimana: 7
602
    importo: 10007.22
603
    nota: 'Nota altra 7 ffsecondaria'
604
    attivo: false
605
  -
606
    id: 8
607
    descsec: null
608
    ffprincipale_id: 2
609 1
    data: $today
610
    intero: 1111
611
    giornodellasettimana: 2
612
    importo: 1111.12
613
    nota: 'Nota ffsecondaria con descsec null'
614
    attivo: false
615
  -
616
    id: 9
617
    descsec: '9° secondaria legato al 2° "record principale"'
618
    ffprincipale_id: 2
619 1
    data: $today
620
    intero: 1000
621
    giornodellasettimana: 1
622
    importo: 1000.12
623
    nota: 'Nota altra ffsecondaria'
624
    attivo: true
625
  -
626
    id: 10
627
    descsec: '10° secondaria legato al 2° record principale ed è l''ultimo record'
628
    ffprincipale_id: 2
629 1
    data: $today
630
    intero: 1100
631
    giornodellasettimana: 2
632
    importo: 1100.99
633
    nota: 'Nota 10° altra ffsecondaria'
634
    attivo: false
635
Fi\CoreBundle\Entity\MenuApplicazione:
636
  -
637
    id: 1
638
    nome: Tabelle
639
    percorso: null
640
    padre: null
641
    ordine: 10
642
    attivo: true
643
    target: null
644
    tag: null
645
    notifiche: null
646
    autorizzazionerichiesta: null
647
    percorsonotifiche: null
648
  -
649
    id: 2
650
    nome: FFprincipale
651
    percorso: Ffprincipale
652
    padre: 1
653
    ordine: 10
654
    attivo: true
655
    target: null
656
    tag: null
657
    notifiche: null
658
    autorizzazionerichiesta: null
659
    percorsonotifiche: null
660
  -
661
    id: 3
662
    nome: FFsecondaria
663
    percorso: Ffsecondaria
664
    padre: 1
665
    ordine: 10
666
    attivo: true
667
    target: null
668
    tag: null
669
    notifiche: null
670
    autorizzazionerichiesta: null
671
    percorsonotifiche: null
672
  -
673
    id: 4
674
    nome: Amministrazione
675
    percorso: null
676
    padre: null
677
    ordine: 20
678
    attivo: true
679
    target: null
680
    tag: null
681
    notifiche: null
682
    autorizzazionerichiesta: null
683
    percorsonotifiche: null
684
  -
685
    id: 5
686
    nome: Operatori
687
    percorso: Operatori
688
    padre: 4
689
    ordine: 10
690
    attivo: true
691
    target: null
692
    tag: null
693
    notifiche: null
694
    autorizzazionerichiesta: null
695
    percorsonotifiche: null
696
  -
697
    id: 6
698
    nome: Ruoli
699
    percorso: Ruoli
700
    padre: 4
701
    ordine: 20
702
    attivo: true
703
    target: null
704
    tag: null
705
    notifiche: null
706
    autorizzazionerichiesta: null
707
    percorsonotifiche: null
708
  -
709
    id: 7
710
    nome: Permessi
711
    percorso: Permessi
712
    padre: 4
713
    ordine: 30
714
    attivo: true
715
    target: null
716
    tag: null
717
    notifiche: null
718
    autorizzazionerichiesta: null
719
    percorsonotifiche: null
720
  -
721
    id: 8
722
    nome: 'Gestione tabelle'
723
    percorso: null
724
    padre: 4
725
    ordine: 40
726
    attivo: true
727
    target: null
728
    tag: null
729
    notifiche: null
730
    autorizzazionerichiesta: null
731
    percorsonotifiche: null
732
  -
733
    id: 9
734
    nome: Tabelle
735
    percorso: Tabelle
736
    padre: 8
737
    ordine: 10
738
    attivo: true
739
    target: null
740
    tag: null
741
    notifiche: null
742
    autorizzazionerichiesta: null
743
    percorsonotifiche: null
744
  -
745
    id: 10
746
    nome: 'Opzioni tabella'
747
    percorso: OpzioniTabella
748
    padre: 8
749
    ordine: 20
750
    attivo: true
751
    target: null
752
    tag: null
753
    notifiche: null
754
    autorizzazionerichiesta: null
755
    percorsonotifiche: null
756
  -
757
    id: 11
758
    nome: 'Menu Applicazione'
759
    percorso: MenuApplicazione_container
760
    padre: 4
761
    ordine: 50
762
    attivo: true
763
    target: null
764
    tag: null
765
    notifiche: null
766
    autorizzazionerichiesta: null
767
    percorsonotifiche: null
768
  -
769
    id: 12
770
    nome: Utilità
771
    percorso: fi_pannello_amministrazione_homepage
772
    padre: 4
773
    ordine: 100
774
    attivo: true
775
    target: null
776
    tag: null
777
    notifiche: null
778
    autorizzazionerichiesta: null
779
    percorsonotifiche: null
780
  -
781
    id: 13
782
    nome: FiDemo
783
    percorso: fi_demo_index
784
    padre: 4
785
    ordine: 150
786
    attivo: false
787
    target: null
788
    tag: null
789
    notifiche: null
790
    autorizzazionerichiesta: null
791
    percorsonotifiche: null
792
EOF;
793 1
        $fs = new Filesystem();
794 1
        $fs->dumpFile($this->fixtureFile, $defaultData);
795 1
    }
796
}
797