The trait ByTIC\MediaLibrary\FileA...FileAdderProcessesTrait requires the property $acceptsMedia which is not provided by ByTIC\MediaLibrary\FileAdder\FileAdder.
Loading history...
19
20
/** @var null|\ByTIC\MediaLibrary\Media\Media */
21
protected $media = null;
22
23
/** @var string */
24
protected $mediaName;
25
26
/**
27
* @return Media|null
28
*/
29
public function getMedia()
30
{
31
if ($this->media === null) {
32
$this->setMedia($this->createMedia());
33
}
34
35
return $this->media;
36
6
}
37
38
6
/**
39
* @param Media|null $media
40
6
*/
41
public function setMedia($media)
42
{
43
$this->media = $media;
44
}
45
46
/**
47
* @throws Exception
48
6
*
49
* @return Media
50
6
*/
51
protected function createMedia()
52
{
53
if (($this->getFile() instanceof SymfonyFile) === false) {
54
throw new Exception(self::NO_FILE_DEFINED);
55
}
56
5
if (($this->subject instanceof HasMedia) === false) {