Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: just moving files #1506

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea
/public/build/fonts/glyphicons-*
/public/build/images/glyphicons-*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\Command;
namespace App\Core\Blog\Command;

use App\Entity\User;
use App\Repository\UserRepository;
use App\Utils\Validator;
use App\Core\Security\Entity\User;
use App\Core\Security\Repository\UserRepository;
use App\Shared\Utils\Validator;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\Command;
namespace App\Core\Blog\Command;

use App\Entity\User;
use App\Repository\UserRepository;
use App\Utils\Validator;
use App\Core\Security\Entity\User;
use App\Core\Security\Repository\UserRepository;
use App\Shared\Utils\Validator;
use Doctrine\ORM\EntityManagerInterface;
use Psr\Log\LoggerInterface;
use Symfony\Component\Console\Attribute\AsCommand;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Command;
namespace App\Core\Blog\Command;

use App\Entity\User;
use App\Repository\UserRepository;
use App\Core\Security\Entity\User;
use App\Core\Security\Repository\UserRepository;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
* file that was distributed with this source code.
*/

namespace App\Controller\Admin;
namespace App\Core\Blog\Controller\Admin;

use App\Entity\Post;
use App\Entity\User;
use App\Form\PostType;
use App\Repository\PostRepository;
use App\Security\PostVoter;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Form\PostType;
use App\Core\Blog\Repository\PostRepository;
use App\Core\Blog\Security\PostVoter;
use App\Core\Security\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\Form\Extension\Core\Type\SubmitType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
* file that was distributed with this source code.
*/

namespace App\Controller;

use App\Entity\Comment;
use App\Entity\Post;
use App\Entity\User;
use App\Event\CommentCreatedEvent;
use App\Form\CommentType;
use App\Repository\PostRepository;
use App\Repository\TagRepository;
namespace App\Core\Blog\Controller;

use App\Core\Blog\Entity\Comment;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Event\CommentCreatedEvent;
use App\Core\Blog\Form\CommentType;
use App\Core\Blog\Repository\PostRepository;
use App\Core\Blog\Repository\TagRepository;
use App\Core\Security\Entity\User;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bridge\Doctrine\Attribute\MapEntity;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
* file that was distributed with this source code.
*/

namespace App\DataFixtures;
namespace App\Core\Blog\DataFixtures;

use App\Entity\Comment;
use App\Entity\Post;
use App\Entity\Tag;
use App\Entity\User;
use App\Core\Blog\Entity\Comment;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Entity\Tag;
use App\Core\Security\Entity\User;
use Doctrine\Bundle\FixturesBundle\Fixture;
use Doctrine\Persistence\ObjectManager;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
Expand Down
3 changes: 2 additions & 1 deletion src/Entity/Comment.php → src/Core/Blog/Entity/Comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Entity;
namespace App\Core\Blog\Entity;

use App\Core\Security\Entity\User;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
Expand Down
5 changes: 3 additions & 2 deletions src/Entity/Post.php → src/Core/Blog/Entity/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Entity;
namespace App\Core\Blog\Entity;

use App\Repository\PostRepository;
use App\Core\Blog\Repository\PostRepository;
use App\Core\Security\Entity\User;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\DBAL\Types\Types;
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/Tag.php → src/Core/Blog/Entity/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\Entity;
namespace App\Core\Blog\Entity;

use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Event;
namespace App\Core\Blog\Event;

use App\Entity\Comment;
use App\Core\Blog\Entity\Comment;
use Symfony\Contracts\EventDispatcher\Event;

final class CommentCreatedEvent extends Event
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\EventSubscriber;
namespace App\Core\Blog\EventSubscriber;

use Doctrine\DBAL\Exception\DriverException;
use Doctrine\DBAL\Platforms\SQLitePlatform;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\EventSubscriber;
namespace App\Core\Blog\EventSubscriber;

use App\Entity\Post;
use App\Entity\User;
use App\Event\CommentCreatedEvent;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Event\CommentCreatedEvent;
use App\Core\Security\Entity\User;
use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Mailer\MailerInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\EventSubscriber;
namespace App\Core\Blog\EventSubscriber;

use App\Twig\SourceCodeExtension;
use App\Core\Blog\Twig\SourceCodeExtension;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ControllerEvent;
use Symfony\Component\HttpKernel\KernelEvents;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\EventSubscriber;
namespace App\Core\Blog\EventSubscriber;

use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\RedirectResponse;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Form;
namespace App\Core\Blog\Form;

use App\Entity\Comment;
use App\Core\Blog\Entity\Comment;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Form\DataTransformer;
namespace App\Core\Blog\Form\DataTransformer;

use App\Entity\Tag;
use App\Repository\TagRepository;
use App\Core\Blog\Entity\Tag;
use App\Core\Blog\Repository\TagRepository;
use Symfony\Component\Form\DataTransformerInterface;
use function Symfony\Component\String\u;

Expand Down
8 changes: 4 additions & 4 deletions src/Form/PostType.php → src/Core/Blog/Form/PostType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\Form;
namespace App\Core\Blog\Form;

use App\Entity\Post;
use App\Form\Type\DateTimePickerType;
use App\Form\Type\TagsInputType;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Form\Type\DateTimePickerType;
use App\Core\Blog\Form\Type\TagsInputType;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextareaType;
use Symfony\Component\Form\FormBuilderInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\Form\Type;
namespace App\Core\Blog\Form\Type;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\DateTimeType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Form\Type;
namespace App\Core\Blog\Form\Type;

use App\Form\DataTransformer\TagArrayToStringTransformer;
use App\Repository\TagRepository;
use App\Core\Blog\Form\DataTransformer\TagArrayToStringTransformer;
use App\Core\Blog\Repository\TagRepository;
use Symfony\Bridge\Doctrine\Form\DataTransformer\CollectionToArrayTransformer;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\TextType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\Pagination;
namespace App\Core\Blog\Pagination;

use Doctrine\ORM\QueryBuilder as DoctrineQueryBuilder;
use Doctrine\ORM\Tools\Pagination\CountWalker;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\Repository;
namespace App\Core\Blog\Repository;

use App\Entity\Post;
use App\Entity\Tag;
use App\Pagination\Paginator;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Entity\Tag;
use App\Core\Blog\Pagination\Paginator;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;
use function Symfony\Component\String\u;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Repository;
namespace App\Core\Blog\Repository;

use App\Entity\Tag;
use App\Core\Blog\Entity\Tag;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Persistence\ManagerRegistry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Security;
namespace App\Core\Blog\Security;

use App\Entity\Post;
use App\Entity\User;
use App\Core\Blog\Entity\Post;
use App\Core\Security\Entity\User;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\Authorization\Voter\Voter;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\Twig;
namespace App\Core\Blog\Twig;

use Symfony\Component\Intl\Locales;
use Twig\Extension\AbstractExtension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
* file that was distributed with this source code.
*/

namespace App\Twig\Components;
namespace App\Core\Blog\Twig\Components;

use App\Entity\Post;
use App\Repository\PostRepository;
use App\Core\Blog\Entity\Post;
use App\Core\Blog\Repository\PostRepository;
use Symfony\UX\LiveComponent\Attribute\AsLiveComponent;
use Symfony\UX\LiveComponent\Attribute\LiveProp;
use Symfony\UX\LiveComponent\DefaultActionTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* file that was distributed with this source code.
*/

namespace App\Twig;
namespace App\Core\Blog\Twig;

use Symfony\Component\DependencyInjection\Attribute\Autowire;
use Symfony\Component\ErrorHandler\ErrorRenderer\FileLinkFormatter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Controller;
namespace App\Core\Security\Controller;

use App\Entity\User;
use App\Core\Security\Entity\User;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
* file that was distributed with this source code.
*/

namespace App\Controller;
namespace App\Core\Security\Controller;

use App\Entity\User;
use App\Form\ChangePasswordType;
use App\Form\UserType;
use App\Core\Security\Entity\User;
use App\Core\Security\Form\ChangePasswordType;
use App\Core\Security\Form\UserType;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Bundle\SecurityBundle\Security;
Expand Down
4 changes: 2 additions & 2 deletions src/Entity/User.php → src/Core/Security/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* file that was distributed with this source code.
*/

namespace App\Entity;
namespace App\Core\Security\Entity;

use App\Repository\UserRepository;
use App\Core\Security\Repository\UserRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
Expand Down
Loading
Loading