Home
last modified time | relevance | path

Searched refs:factory (Results 1 – 20 of 20) sorted by relevance

/webtrees/app/
H A DRegistry.php115 * @param CacheFactoryInterface|null $factory
119 public static function cache(CacheFactoryInterface|null $factory = null): CacheFactoryInterface argument
121 if ($factory instanceof CacheFactoryInterface) {
122 self::$cache_factory = $factory;
131 * @param CalendarDateFactoryInterface|null $factory
135 …public static function calendarDateFactory(CalendarDateFactoryInterface|null $factory = null): Cal… argument
137 if ($factory instanceof CalendarDateFactoryInterface) {
138 self::$calendar_date_factory = $factory;
163 * @param ElementFactoryInterface|null $factory
167 …public static function elementFactory(ElementFactoryInterface|null $factory = null): ElementFactor… argument
[all …]
/webtrees/tests/app/Factories/
H A DCalendarDateFactoryTest.php37 $factory = new CalendarDateFactory();
39 $date = $factory->make('');
49 $factory = new CalendarDateFactory();
62 $date = $factory->make($calendar_escape);
72 $factory = new CalendarDateFactory();
74 $date = $factory->make('@#DSTARDATE@');
83 $factory = new CalendarDateFactory();
85 $date = $factory->make('01 JAN 1970');
94 $factory = new CalendarDateFactory();
96 $date = $factory->make('JAN 1970');
[all …]
H A DEncodingFactoryTest.php43 $factory = new EncodingFactory();
47 $factory->detect(UTF8::BYTE_ORDER_MARK)
52 $factory->detect(UTF16BE::BYTE_ORDER_MARK)
57 $factory->detect(UTF16LE::BYTE_ORDER_MARK)
63 $factory = new EncodingFactory();
67 $factory->detect("\x000")
72 $factory->detect("0\x00")
78 $factory = new EncodingFactory();
82 $factory->detect("0 HEAD\n1 CHAR MACINTOSH\n0 TRLR")
88 $factory = new EncodingFactory();
[all …]
H A DMarkdownFactoryTest.php33 $factory = new MarkdownFactory();
37 $factory->autolink('FOO https://example.com BAR')
43 $factory = new MarkdownFactory();
48 $factory->autolink('FOO https://example.com BAR', $tree)
54 $factory = new MarkdownFactory();
58 $factory->autolink('<b> https://example.com </b>')
64 $factory = new MarkdownFactory();
68 $factory->markdown('FOO https://example.com BAR')
73 $factory->markdown('FOO <https://example.com> BAR')
80 $factory = new MarkdownFactory();
[all …]
H A DSurnameTraditionFactoryTest.php40 $factory = new SurnameTraditionFactory();
42 …self::assertInstanceOf(DefaultSurnameTradition::class, $factory->make(SurnameTraditionFactoryInter…
43 …self::assertInstanceOf(IcelandicSurnameTradition::class, $factory->make(SurnameTraditionFactoryInt…
44 …self::assertInstanceOf(LithuanianSurnameTradition::class, $factory->make(SurnameTraditionFactoryIn…
45 …self::assertInstanceOf(MatrilinealSurnameTradition::class, $factory->make(SurnameTraditionFactoryI…
46 …self::assertInstanceOf(PaternalSurnameTradition::class, $factory->make(SurnameTraditionFactoryInte…
47 …self::assertInstanceOf(PatrilinealSurnameTradition::class, $factory->make(SurnameTraditionFactoryI…
48 …self::assertInstanceOf(PolishSurnameTradition::class, $factory->make(SurnameTraditionFactoryInterf…
49 …self::assertInstanceOf(PortugueseSurnameTradition::class, $factory->make(SurnameTraditionFactoryIn…
50 …self::assertInstanceOf(SpanishSurnameTradition::class, $factory->make(SurnameTraditionFactoryInter…
[all …]
/webtrees/app/Elements/
H A DAbstractXrefElement.php63 * @param GedcomRecordFactoryInterface $factory
67 …ed function valueXrefLink(string $value, Tree $tree, GedcomRecordFactoryInterface $factory): string argument
75 $record = $factory->make($match[1], $tree);
H A DEventsRecorded.php125 $factory = Registry::elementFactory();
128 …->mapWithKeys(static fn (string $tag): array => [explode(':', $tag)[1] => $factory->make($tag)->la…
/webtrees/tests/app/Elements/
H A DXrefNoteTest.php41 $factory = $this->createMock(NoteFactory::class);
43 $factory->expects($this->once())
47 Registry::noteFactory($factory);
H A DXrefSharedNoteTest.php41 $factory = $this->createMock(SharedNoteFactory::class);
43 $factory->expects($this->once())
47 Registry::sharedNoteFactory($factory);
H A DXrefRepositoryTest.php42 $factory = $this->createMock(RepositoryFactory::class);
44 $factory->expects($this->once())
48 Registry::repositoryFactory($factory);
H A DXrefFamilyTest.php42 $factory = $this->createMock(FamilyFactory::class);
44 $factory->expects($this->once())
48 Registry::familyFactory($factory);
H A DXrefMediaTest.php42 $factory = $this->createMock(MediaFactory::class);
44 $factory->expects($this->once())
48 Registry::mediaFactory($factory);
H A DXrefSubmissionTest.php42 $factory = $this->createMock(SubmissionFactory::class);
44 $factory->expects($this->once())
48 Registry::submissionFactory($factory);
H A DXrefSubmitterTest.php42 $factory = $this->createMock(SubmitterFactory::class);
44 $factory->expects($this->once())
48 Registry::submitterFactory($factory);
H A DXrefLocationTest.php42 $factory = $this->createMock(LocationFactory::class);
44 $factory->expects($this->once())
48 Registry::locationFactory($factory);
H A DXrefIndividualTest.php42 $factory = $this->createMock(IndividualFactory::class);
44 $factory->expects($this->once())
48 Registry::individualFactory($factory);
H A DXrefSourceTest.php44 $factory = $this->createMock(SourceFactory::class);
46 $factory->expects($this->once())
50 Registry::sourceFactory($factory);
/webtrees/app/Services/
H A DGedcomEditService.php264 $factory = Registry::elementFactory();
265 $subtags = $factory->make($tag)->subtags();
303 $default = $factory->make($tag . ':' . $subtag)->default($tree);
H A DPendingChangesService.php121 $factory = $factories[$match[1]] ?? Registry::gedcomRecordFactory();
123 $row->record = $factory->new($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
/webtrees/
H A Dcomposer.lock308 "email": "roman@code-factory.org"
398 "email": "roman@code-factory.org"
828 "php-http/message-factory": "^1.1",
1024 "psr/http-factory": "^1.0",
1029 "psr/http-factory-implementation": "1.0",
1034 "http-interop/http-factory-tests": "0.9.0",
1350 "fakerphp/faker": "Required to use the eloquent factory builder (^1.21).",
2586 "psr/http-factory": "^1.0",
2590 "php-http/message-factory-implementation": "1.0",
2591 "psr/http-factory-implementation": "1.0",
[all …]