Skip to content

Commit

Permalink
Add adjustment to Diyanet and Refactor some code. Update Tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Sep 25, 2023
1 parent 109e9dc commit 14d69be
Show file tree
Hide file tree
Showing 12 changed files with 488 additions and 462 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM ghcr.io/islamic-network/php:8.1-unit
FROM ghcr.io/islamic-network/php:8.2-unit

# Copy files
COPY . /var/www/
#COPY etc/apache2/mods-enabled/mpm_prefork.conf /etc/apache2/mods-enabled/mpm_prefork.conf
COPY etc/unit/.unit.conf.json /docker-entrypoint.d/.unit.conf.json

# Run Composer
RUN cd /var/www && composer install --no-dev
RUN export COMPOSER_ALLOW_SUPERUSER=1 && cd /var/www && composer install --no-dev

# Delete stuff we do not need
RUN rm -rf /var/www/.git
Expand All @@ -22,4 +22,4 @@ RUN rm -rf /var/www/.gitignore
# COPY bin/doctrine/proxies.sh /usr/local/bin/doctrine-proxies.sh
# RUN chmod -R 777 /tmp && chmod 755 /usr/local/bin/doctrine-proxies.sh
# CMD ["/usr/local/bin/doctrine-proxies.sh"]
###################################### Doctrine Proxies end ###################################################
###################################### Doctrine Proxies end ###################################################
2 changes: 2 additions & 0 deletions api/Controllers/v1/PrayerTimes.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class PrayerTimes extends Slim
{
public MemcachedAdapter $mc;

public HijriCalendar $hc;


public function __construct(ContainerInterface $container)
{
Expand Down
170 changes: 68 additions & 102 deletions api/Utils/PrayerTimesHelper.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"require": {
"7x/sdk": "^1.4",
"islamic-network/alqibla": "^1.2",
"islamic-network/prayer-times": "^1.0.23",
"islamic-network/prayer-times": "^1.0.24",
"mamluk/kipchak": "^0.33",
"rafaelfragoso/haversini-formula": "dev-master",
"p3k/emoji-detector": "^0.2.1"
Expand Down
Loading

0 comments on commit 14d69be

Please sign in to comment.