# nbcomrade/get-jobs architecture

> Architecture diagram of the GitHub repository nbcomrade/get-jobs, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-04-08). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/nbcomrade/get-jobs
- Repository: https://github.com/nbcomrade/get-jobs

## Overview

1. This is a Symfony 3.4-style monolith with a classic front-controller layout. HTTP traffic enters through `web/app.php` or `web/app_dev.php`, boots `app/AppKernel.php`, loads environment-specific config from `app/config`, and routes requests via Symfony routing.

2. The main application code lives in `src/AppBundle`. The app is organized as a standard Symfony bundle, with one primary controller (`DefaultController`) handling the user-facing flows and delegating work to services, forms, and repositories rather than embedding business logic in the controller.

3. The domain/persistence layer is centered on Doctrine entities: `FeaturedJob` and `SearchSetting`. These represent the app’s stored state, while custom Doctrine repositories (`FeaturedJobRepository`, `SearchSettingRepository`) encapsulate database queries.

4. There is a clear separation between persisted entities and transport objects. `DTO/Job.php` and `DTO/JobQuery.php` suggest the app handles job data and job-search criteria as in-memory transfer objects before mapping them to entities or queries.

5. Application services are abstracted behind interfaces in `Contract/`: `ParserInterface` and `SenderInterface`. The concrete implementations in `Service/Parser.php` and `Service/Sender.php` likely perform the core business actions: parsing job data from an external source and sending notifications or messages.

6. The presence of `Form/ParseType.php` and `Form/SettingType.php` indicates the UI is form-driven. These form types bind user input to the app’s DTOs or entities and are the main boundary between HTTP requests and the application layer.

7. Presentation is server-rendered with Twig. Templates under `app/Resources/views` define the base layout and the default pages (`index`, `show`, `configure`), so the app is primarily an HTML-rendered Symfony app rather than a client-side SPA.

8. Data flow is likely: user request → controller → form/DTO validation → service/repository calls → Doctrine persistence or external parsing/sending → Twig render. The controller appears to orchestrate these steps, while the services and repositories keep the business and data access concerns isolated.

9. Database schema changes are managed with Doctrine migrations in `app/DoctrineMigrations`. That means schema evolution is versioned and deployed separately from runtime code.

10. The app uses Symfony’s standard support stack from the README: Twig for templating, Doctrine ORM/DBAL for persistence, SecurityBundle for auth/security configuration, and Swiftmailer support via Symfony’s mail integration. The `Sender` service is the most likely integration point for outgoing email.

11. Front-end assets are kept under `web/assets` with `webpack.config.js` and SCSS/JS entry points. This suggests a small compiled asset pipeline for styles and scripts, served from the Symfony web root rather than a separate frontend app.

12. Environment and operational boundaries are conventional Symfony: `config_dev.yml`, `config_prod.yml`, and `config_test.yml` split runtime behavior; `var/cache`, `var/logs`, and `var/sessions` hold runtime state; and `tests/AppBundle/Controller/DefaultControllerTest.php` covers controller behavior at the HTTP layer.

13. For an architecture diagram, the key boxes are: Symfony kernel/bootstrap, controller layer, form/DTO layer, service interfaces and implementations, Doctrine repositories/entities, Twig views, and the database/external sending/parsing integration points. The most important arrows are request handling into the controller, controller delegation into parser/sender/repositories, and persistence/output back to the browser.

Main entry points: [`src/AppBundle/Controller/DefaultController.php`](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Controller/DefaultController.php) (Default controller), [`src/AppBundle/Service/Parser.php`](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Parser.php) (Parser), [`app/AppKernel.php`](https://github.com/nbcomrade/get-jobs/blob/master/app/AppKernel.php) (Kernel), [`src/AppBundle/Service/Sender.php`](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Sender.php) (Sender)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_grp_bootstrap["Bootstrap"]
  node_node_web_app["Front controller<br/>symfony entrypoint<br/>[app.php]"]
  node_node_web_dev["Dev front controller<br/>symfony entrypoint<br/>[app_dev.php]"]
  node_node_kernel["Kernel<br/>[AppKernel.php]"]
  node_node_routes["Routing<br/>symfony config<br/>[routing.yml]"]
  node_node_config["App config<br/>symfony config<br/>[config.yml]"]
  node_node_services["Service wiring<br/>symfony services<br/>[services.yml]"]
end

subgraph group_grp_app["App Bundle"]
  node_node_controller["Default controller<br/>http controller"]
  node_node_parse_form["Parse form<br/>form type<br/>[ParseType.php]"]
  node_node_setting_form["Setting form<br/>form type<br/>[SettingType.php]"]
  node_node_job_dto["Job DTO<br/>transfer object<br/>[Job.php]"]
  node_node_query_dto["Query DTO<br/>transfer object<br/>[JobQuery.php]"]
  node_node_parser_contract["Parser API<br/>service contract"]
  node_node_sender_contract["Sender API<br/>service contract"]
  node_node_parser["Parser<br/>service implementation<br/>[Parser.php]"]
  node_node_sender["Sender<br/>service implementation<br/>[Sender.php]"]
  node_node_featured_entity[("Featured job<br/>doctrine entity<br/>[FeaturedJob.php]")]
  node_node_setting_entity[("Search setting<br/>doctrine entity<br/>[SearchSetting.php]")]
  node_node_featured_repo["Featured repo<br/>doctrine repository"]
  node_node_setting_repo["Settings repo<br/>doctrine repository"]
end

subgraph group_grp_views["Presentation"]
  node_node_twig_base["Base layout<br/>twig template<br/>[base.html.twig]"]
  node_node_twig_pages["Pages<br/>twig templates<br/>[index.html.twig]"]
  node_node_assets["Assets<br/>[index.js]"]
end

subgraph group_grp_ops["Operations"]
  node_node_migrations["Migrations"]
  node_node_test["Controller test<br/>http test"]
end

node_node_web_app -->|"boots"| node_node_kernel
node_node_web_dev -->|"boots"| node_node_kernel
node_node_kernel -->|"loads"| node_node_routes
node_node_kernel -->|"loads"| node_node_config
node_node_config -->|"wires"| node_node_services
node_node_routes -->|"dispatches"| node_node_controller
node_node_controller -->|"uses"| node_node_parse_form
node_node_controller -->|"uses"| node_node_setting_form
node_node_controller -->|"depends on"| node_node_parser_contract
node_node_controller -->|"depends on"| node_node_sender_contract
node_node_controller -->|"queries"| node_node_featured_repo
node_node_controller -->|"queries"| node_node_setting_repo
node_node_controller -->|"renders"| node_node_twig_base
node_node_controller -->|"renders"| node_node_twig_pages
node_node_parse_form -->|"binds"| node_node_query_dto
node_node_setting_form -->|"binds"| node_node_setting_entity
node_node_parser -->|"implements"| node_node_parser_contract
node_node_sender -->|"implements"| node_node_sender_contract
node_node_parser -->|"produces"| node_node_job_dto
node_node_parser -->|"consumes"| node_node_query_dto
node_node_sender -->|"updates"| node_node_featured_entity
node_node_featured_repo -->|"stores"| node_node_featured_entity
node_node_setting_repo -->|"stores"| node_node_setting_entity
node_node_twig_pages -->|"includes"| node_node_assets
node_node_migrations -->|"evolves"| node_node_featured_entity
node_node_migrations -->|"evolves"| node_node_setting_entity
node_node_test -->|"covers"| node_node_controller
node_node_controller -->|"uses"| node_node_parser
node_node_controller -->|"uses"| node_node_sender

click node_node_web_app "https://github.com/nbcomrade/get-jobs/blob/master/web/app.php"
click node_node_web_dev "https://github.com/nbcomrade/get-jobs/blob/master/web/app_dev.php"
click node_node_kernel "https://github.com/nbcomrade/get-jobs/blob/master/app/AppKernel.php"
click node_node_routes "https://github.com/nbcomrade/get-jobs/blob/master/app/config/routing.yml"
click node_node_config "https://github.com/nbcomrade/get-jobs/blob/master/app/config/config.yml"
click node_node_controller "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Controller/DefaultController.php"
click node_node_parse_form "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Form/ParseType.php"
click node_node_setting_form "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Form/SettingType.php"
click node_node_job_dto "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/DTO/Job.php"
click node_node_query_dto "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/DTO/JobQuery.php"
click node_node_parser_contract "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Contract/ParserInterface.php"
click node_node_sender_contract "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Contract/SenderInterface.php"
click node_node_parser "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Parser.php"
click node_node_sender "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Sender.php"
click node_node_featured_entity "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Entity/FeaturedJob.php"
click node_node_setting_entity "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Entity/SearchSetting.php"
click node_node_featured_repo "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Repository/FeaturedJobRepository.php"
click node_node_setting_repo "https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Repository/SearchSettingRepository.php"
click node_node_twig_base "https://github.com/nbcomrade/get-jobs/blob/master/app/Resources/views/base.html.twig"
click node_node_twig_pages "https://github.com/nbcomrade/get-jobs/blob/master/app/Resources/views/default/index.html.twig"
click node_node_assets "https://github.com/nbcomrade/get-jobs/blob/master/web/assets/js/index.js"
click node_node_migrations "https://github.com/nbcomrade/get-jobs/blob/master/app/DoctrineMigrations/Version20180316084207.php"
click node_node_test "https://github.com/nbcomrade/get-jobs/blob/master/tests/AppBundle/Controller/DefaultControllerTest.php"
click node_node_services "https://github.com/nbcomrade/get-jobs/blob/master/app/config/services.yml"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_node_web_app,node_node_web_dev,node_node_kernel,node_node_routes,node_node_config,node_node_services toneBlue
class node_node_controller,node_node_parse_form,node_node_setting_form,node_node_job_dto,node_node_query_dto,node_node_parser_contract,node_node_sender_contract,node_node_parser,node_node_sender,node_node_featured_entity,node_node_setting_entity,node_node_featured_repo,node_node_setting_repo toneAmber
class node_node_twig_base,node_node_twig_pages,node_node_assets toneMint
class node_node_migrations,node_node_test toneRose
```

## Components

### Bootstrap

Symfony front controller, kernel, config, and runtime boundaries.

- [Front controller](https://github.com/nbcomrade/get-jobs/blob/master/web/app.php): symfony entrypoint · HTTP entry point for the production environment. · `web/app.php`
- [Dev front controller](https://github.com/nbcomrade/get-jobs/blob/master/web/app_dev.php): symfony entrypoint · HTTP entry point with development tooling enabled. · `web/app_dev.php`
- [Kernel](https://github.com/nbcomrade/get-jobs/blob/master/app/AppKernel.php): symfony kernel · Bootstraps bundles and framework services. · `app/AppKernel.php`
- [Routing](https://github.com/nbcomrade/get-jobs/blob/master/app/config/routing.yml): symfony config · Defines the application routes and environment-specific routing. · `app/config/routing.yml`
- [App config](https://github.com/nbcomrade/get-jobs/blob/master/app/config/config.yml): symfony config · Main service and framework configuration. · `app/config/config.yml`
- [Service wiring](https://github.com/nbcomrade/get-jobs/blob/master/app/config/services.yml): symfony services · Service definitions and dependency wiring. · `app/config/services.yml`

### App Bundle

Primary application code for HTTP, forms, services, domain, and persistence.

- [Default controller](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Controller/DefaultController.php): http controller · Orchestrates request handling and delegates to forms, services, and repositories. · `src/AppBundle/Controller/DefaultController.php`
- [Parse form](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Form/ParseType.php): form type · Binds parse requests to application input. · `src/AppBundle/Form/ParseType.php`
- [Setting form](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Form/SettingType.php): form type · Binds configuration input to persisted settings. · `src/AppBundle/Form/SettingType.php`
- [Job DTO](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/DTO/Job.php): transfer object · In-memory job representation used between layers. · `src/AppBundle/DTO/Job.php`
- [Query DTO](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/DTO/JobQuery.php): transfer object · Search criteria object for job lookup and parsing. · `src/AppBundle/DTO/JobQuery.php`
- [Parser API](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Contract/ParserInterface.php): service contract · Interface for parsing jobs from an external source. · `src/AppBundle/Contract/ParserInterface.php`
- [Sender API](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Contract/SenderInterface.php): service contract · Interface for sending notifications or messages. · `src/AppBundle/Contract/SenderInterface.php`
- [Parser](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Parser.php): service implementation · Concrete parser service behind the parser contract. · `src/AppBundle/Service/Parser.php`
- [Sender](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Service/Sender.php): service implementation · Concrete sending service behind the sender contract. · `src/AppBundle/Service/Sender.php`
- [Featured job](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Entity/FeaturedJob.php): doctrine entity · Persisted featured job record. · `src/AppBundle/Entity/FeaturedJob.php`
- [Search setting](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Entity/SearchSetting.php): doctrine entity · Persisted search configuration record. · `src/AppBundle/Entity/SearchSetting.php`
- [Featured repo](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Repository/FeaturedJobRepository.php): doctrine repository · Database access for featured jobs. · `src/AppBundle/Repository/FeaturedJobRepository.php`
- [Settings repo](https://github.com/nbcomrade/get-jobs/blob/master/src/AppBundle/Repository/SearchSettingRepository.php): doctrine repository · Database access for search settings. · `src/AppBundle/Repository/SearchSettingRepository.php`

### Presentation

Server-rendered Twig templates and public assets.

- [Base layout](https://github.com/nbcomrade/get-jobs/blob/master/app/Resources/views/base.html.twig): twig template · Shared HTML shell for rendered pages. · `app/Resources/views/base.html.twig`
- [Pages](https://github.com/nbcomrade/get-jobs/blob/master/app/Resources/views/default/index.html.twig): twig templates · Primary server-rendered pages for index, show, and configure flows. · `app/Resources/views/default/index.html.twig`
- [Assets](https://github.com/nbcomrade/get-jobs/blob/master/web/assets/js/index.js): frontend assets · Compiled CSS/JS and static assets served from the web root. · `web/assets/js/index.js`

### Operations

Database migrations, tests, and environment/runtime support.

- [Migrations](https://github.com/nbcomrade/get-jobs/blob/master/app/DoctrineMigrations/Version20180316084207.php): doctrine migrations · Versioned database schema evolution. · `app/DoctrineMigrations/Version20180316084207.php`
- [Controller test](https://github.com/nbcomrade/get-jobs/blob/master/tests/AppBundle/Controller/DefaultControllerTest.php): http test · Exercises the main controller at the HTTP layer. · `tests/AppBundle/Controller/DefaultControllerTest.php`

## Connections

- Front controller → Kernel: boots · Production front controller starts the Symfony kernel.
- Dev front controller → Kernel: boots · Development front controller starts the Symfony kernel.
- Kernel → Routing: loads · Kernel uses routing configuration to resolve requests.
- Kernel → App config: loads · Kernel loads framework and app configuration.
- App config → Service wiring: wires · Configuration defines services and dependency injection.
- Routing → Default controller: dispatches · Routes map incoming requests to the default controller.
- Default controller → Parse form: uses · Controller binds parse flows through the parse form.
- Default controller → Setting form: uses · Controller binds configuration flows through the setting form.
- Default controller → Parser API: depends on · Controller delegates parsing to the parser abstraction.
- Default controller → Sender API: depends on · Controller delegates sending to the sender abstraction.
- Default controller → Featured repo: queries · Controller reads featured jobs through the repository.
- Default controller → Settings repo: queries · Controller reads and updates search settings through the repository.
- Default controller → Base layout: renders · Controller renders pages through the shared layout.
- Default controller → Pages: renders · Controller renders the main server-side pages.
- Parse form → Query DTO: binds · Parse form binds user input to query data.
- Setting form → Search setting: binds · Setting form binds user input to persisted settings.
- Parser → Parser API: implements · Concrete parser fulfills the parser interface.
- Sender → Sender API: implements · Concrete sender fulfills the sender interface.
- Parser → Job DTO: produces · Parser creates in-memory job representations.
- Parser → Query DTO: consumes · Parser uses search criteria to drive parsing.
- Sender → Featured job: updates · Sender may persist or use featured job state when notifying.
- Featured repo → Featured job: stores · Repository manages featured job persistence.
- Settings repo → Search setting: stores · Repository manages search setting persistence.
- Pages → Assets: includes · Pages rely on the compiled front-end assets.
- Migrations → Featured job: evolves · Migrations evolve the schema backing domain entities.
- Migrations → Search setting: evolves · Migrations evolve the schema backing domain entities.
- Controller test → Default controller: covers · HTTP test exercises the main controller flow.
- Default controller → Parser: uses · Controller invokes the parser service implementation via its contract.
- Default controller → Sender: uses · Controller invokes the sender service implementation via its contract.
