Sfoglia il codice sorgente

remove obsolete parameters.subDomain field

Olivier Massot 3 anni fa
parent
commit
5ae3c2b687

+ 0 - 15
src/ApiResources/Profile/OrganizationProfile.php

@@ -33,9 +33,6 @@ class OrganizationProfile implements ApiResourcesInterface
     #[Groups('access_profile_read')]
     private ?string $legalStatus = null;
 
-    #[Groups('access_profile_read')]
-    private ?string $subDomain = null;
-
     #[Groups('access_profile_read')]
     private array $networks = [];
 
@@ -120,18 +117,6 @@ class OrganizationProfile implements ApiResourcesInterface
         return $this;
     }
 
-    public function getSubDomain(): ?string
-    {
-        return $this->subDomain;
-    }
-
-    public function setSubDomain(?string $subDomain): self
-    {
-        $this->subDomain = $subDomain;
-
-        return $this;
-    }
-
     public function getWebsite(): ?string
     {
         return $this->website;

+ 0 - 39
src/Entity/Organization/Parameters.php

@@ -288,45 +288,6 @@ class Parameters
         return $this;
     }
 
-    /**
-     * @deprecated
-     * @return string|null
-     */
-    public function getSubDomain(): ?string
-    {
-        return $this->subDomain;
-    }
-
-    /**
-     * @deprecated
-     * @param string|null $subDomain
-     */
-    public function setSubDomain(?string $subDomain): self
-    {
-        throw new \RuntimeException('setSubDomain is deprecated, use addSubdomain with setActive');
-    }
-
-    /**
-     * @deprecated
-     * @return string|null
-     */
-    public function getWebsite(): ?string
-    {
-        return $this->website;
-    }
-
-    /**
-     * @deprecated
-     * @param string|null $website
-     * @return $this
-     */
-    public function setWebsite(?string $website): self
-    {
-        $this->website = $website;
-
-        return $this;
-    }
-
     public function getOtherWebsite(): ?string
     {
         return $this->otherWebsite;

+ 0 - 8
src/Entity/Organization/Subdomain.php

@@ -92,14 +92,6 @@ class Subdomain
         return $this->subdomain;
     }
 
-    /**
-     * @param string $subdomain
-     */
-    public function setSubdomain(string $subdomain): void
-    {
-        $this->subdomain = $subdomain;
-    }
-
     /**
      * @return bool
      */