|
14 | 14 |
|
15 | 15 | class Schemas extends \Tatter\Schemas\Config\Schemas
|
16 | 16 | {
|
17 |
| - // Whether to continue instead of throwing exceptions |
18 |
| - public $silent = true; |
19 |
| - |
20 |
| - // Which tasks to automate when a schema is not available from the service |
21 |
| - public $automate = [ |
22 |
| - 'draft' => true, |
23 |
| - 'archive' => true, |
24 |
| - 'read' => true, |
25 |
| - ]; |
26 |
| - |
27 |
| - //-------------------------------------------------------------------- |
28 |
| - // Drafting |
29 |
| - //-------------------------------------------------------------------- |
30 |
| - |
31 |
| - // Default handlers used to create a schema (order sensitive) |
32 |
| - // (Probably shouldn't change this unless you really know what you're doing) |
33 |
| - public $draftHandlers = [ |
34 |
| - 'Tatter\Schemas\Drafter\Handlers\DatabaseHandler', |
35 |
| - 'Tatter\Schemas\Drafter\Handlers\ModelHandler', |
36 |
| - 'Tatter\Schemas\Drafter\Handlers\DirectoryHandler', |
37 |
| - ]; |
38 |
| - |
39 |
| - // Tables to ignore when creating the schema |
40 |
| - public $ignoredTables = ['migrations']; |
41 |
| - |
42 |
| - // Namespaces to ignore (mostly for ModelHandler) |
43 |
| - public $ignoredNamespaces = [ |
44 |
| - 'Tests\Support', |
45 |
| - ]; |
46 |
| - |
47 |
| - // Path the directoryHandler should scan for schema files |
48 |
| - public $schemasDirectory = APPPATH . 'Schemas'; |
49 |
| - |
50 |
| - //-------------------------------------------------------------------- |
51 |
| - // Archiving |
52 |
| - //-------------------------------------------------------------------- |
53 |
| - |
54 |
| - // Default handlers to archive copies of the schema |
55 |
| - public $archiveHandlers = [ |
56 |
| - 'Tatter\Schemas\Archiver\Handlers\CacheHandler', |
57 |
| - ]; |
58 |
| - |
59 |
| - // Default time-to-live for a stored schema (e.g. Cache) in seconds |
60 |
| - public $ttl = 14400; // 4 hours |
61 |
| - |
62 |
| - //-------------------------------------------------------------------- |
63 |
| - // Reading |
64 |
| - //-------------------------------------------------------------------- |
65 |
| - |
66 |
| - // Default handler used to return and read a schema |
67 |
| - public $readHandler = 'Tatter\Schemas\Reader\Handlers\CacheHandler'; |
68 |
| - |
69 |
| - //-------------------------------------------------------------------- |
70 |
| - // Publishing |
71 |
| - //-------------------------------------------------------------------- |
72 |
| - |
73 |
| - // Precaution to prevent accidental wiping of databases or files |
74 |
| - public $safeMode = true; |
| 17 | + // Whether to continue instead of throwing exceptions |
| 18 | + public $silent = true; |
| 19 | + |
| 20 | + // Which tasks to automate when a schema is not available from the service |
| 21 | + public $automate = [ |
| 22 | + 'draft' => true, |
| 23 | + 'archive' => true, |
| 24 | + 'read' => true, |
| 25 | + ]; |
| 26 | + |
| 27 | + //-------------------------------------------------------------------- |
| 28 | + // Drafting |
| 29 | + //-------------------------------------------------------------------- |
| 30 | + |
| 31 | + // Default handlers used to create a schema (order sensitive) |
| 32 | + // (Probably shouldn't change this unless you really know what you're doing) |
| 33 | + public $draftHandlers = [ |
| 34 | + 'Tatter\Schemas\Drafter\Handlers\DatabaseHandler', |
| 35 | + 'Tatter\Schemas\Drafter\Handlers\ModelHandler', |
| 36 | + 'Tatter\Schemas\Drafter\Handlers\DirectoryHandler', |
| 37 | + ]; |
| 38 | + |
| 39 | + // Tables to ignore when creating the schema |
| 40 | + public $ignoredTables = ['migrations']; |
| 41 | + |
| 42 | + // Namespaces to ignore (mostly for ModelHandler) |
| 43 | + public $ignoredNamespaces = [ |
| 44 | + 'Tests\Support', |
| 45 | + ]; |
| 46 | + |
| 47 | + // Path the directoryHandler should scan for schema files |
| 48 | + public $schemasDirectory = APPPATH . 'Schemas'; |
| 49 | + |
| 50 | + //-------------------------------------------------------------------- |
| 51 | + // Archiving |
| 52 | + //-------------------------------------------------------------------- |
| 53 | + |
| 54 | + // Default handlers to archive copies of the schema |
| 55 | + public $archiveHandlers = [ |
| 56 | + 'Tatter\Schemas\Archiver\Handlers\CacheHandler', |
| 57 | + ]; |
| 58 | + |
| 59 | + // Default time-to-live for a stored schema (e.g. Cache) in seconds |
| 60 | + public $ttl = 14400; // 4 hours |
| 61 | + |
| 62 | + //-------------------------------------------------------------------- |
| 63 | + // Reading |
| 64 | + //-------------------------------------------------------------------- |
| 65 | + |
| 66 | + // Default handler used to return and read a schema |
| 67 | + public $readHandler = 'Tatter\Schemas\Reader\Handlers\CacheHandler'; |
| 68 | + |
| 69 | + //-------------------------------------------------------------------- |
| 70 | + // Publishing |
| 71 | + //-------------------------------------------------------------------- |
| 72 | + |
| 73 | + // Precaution to prevent accidental wiping of databases or files |
| 74 | + public $safeMode = true; |
75 | 75 | }
|
0 commit comments